Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions alchemy/bin/commands/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,13 @@ async function createToken(
async function createCloudflareGodToken() {
intro(pc.cyan("🧪 Create Cloudflare God Token"));

log.info(
pc.dim(
"Enter Cloudflare Global API Key. It can be found in the cloudflare dashboard: https://dash.cloudflare.com/profile/api-tokens",
),
);
const apiKey = await password({
message: "Enter Cloudflare API Key",
message: "Enter Cloudflare Global API Key",
});
if (isCancel(apiKey)) {
throw new CancelSignal();
Expand Down Expand Up @@ -251,8 +256,13 @@ async function createCloudflareProfileToken(input: { profile?: string }) {
}
}

log.info(
pc.dim(
"Enter Cloudflare Global API Key. It can be found in the cloudflare dashboard: https://dash.cloudflare.com/profile/api-tokens",
),
);
const apiKey = await password({
message: "Enter Cloudflare API Key",
message: "Enter Cloudflare Global API Key",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean "Enter Cloudflare Global API Key" gets printed twice?

});
if (isCancel(apiKey)) {
throw new CancelSignal();
Expand Down
Loading