Skip to content

Commit bee4043

Browse files
emily-shenRebeccaTamachiro
authored andcommitted
Add new flags to wrangler login (#21737)
1 parent e5dfae5 commit bee4043

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,9 @@ wrangler secrets-store secret create <STORE_ID> [OPTIONS]
614614
- A descriptive name for the account-level secret. Cannot contain spaces.
615615
- `--value` <Type text="string" /> <MetaInfo text="test only" />
616616
- Value of the secret.
617-
:::caution[Only use for testing]
618-
This will leave the secret value in plain-text in terminal history. For real secret values, use the automatic prompt instead. Find an example below.
619-
:::
617+
:::caution[Only use for testing]
618+
This will leave the secret value in plain-text in terminal history. For real secret values, use the automatic prompt instead. Find an example below.
619+
:::
620620
- `--scopes` <Type text="string" /> <MetaInfo text="required" />
621621
- Which services will have access to the account-level secret. Currently, only `workers` is available.
622622
- `--comment` <Type text="string" /> <MetaInfo text="optional" />
@@ -652,9 +652,9 @@ wrangler secrets-store secret update <STORE_ID> [OPTIONS]
652652
- The ID of the secret to update.
653653
- `--value` <Type text="string" /> <MetaInfo text="test only" />
654654
- Updated value of the secret.
655-
:::caution[Only use for testing]
656-
This will leave the secret value in plain-text in terminal history. For real secret values, use the automatic prompt instead.
657-
:::
655+
:::caution[Only use for testing]
656+
This will leave the secret value in plain-text in terminal history. For real secret values, use the automatic prompt instead.
657+
:::
658658
- `--scopes` <Type text="string" /> <MetaInfo text="required" />
659659
- Which services will have access to the account-level secret. Currently, only `workers` is available.
660660
- `--comment` <Type text="string" /> <MetaInfo text="optional" />
@@ -1198,6 +1198,7 @@ wrangler pages functions build [<DIRECTORY>] [OPTIONS]
11981198
---
11991199

12001200
## `pipelines`
1201+
12011202
Manage your [Pipelines](/pipelines/).
12021203

12031204
<Render file="wrangler-commands/pipelines" product="workers" />
@@ -1365,17 +1366,21 @@ wrangler login [OPTIONS]
13651366

13661367
- `--scopes-list` <Type text="string" /> <MetaInfo text="optional" />
13671368
- List all the available OAuth scopes with descriptions.
1368-
- `--scopes $SCOPES` <Type text="string" /> <MetaInfo text="optional" />
1369+
- `--scopes` <Type text="string" /> <MetaInfo text="optional" />
13691370
- Allows to choose your set of OAuth scopes. The set of scopes must be entered in a whitespace-separated list,
13701371
for example, `npx wrangler login --scopes account:read user:read`.
1371-
1372-
<Render file="wrangler-commands/global-flags" product="workers" />
1372+
- `--callback-host` <Type text="string" /> <MetaInfo text="optional" />
1373+
- Defaults to `localhost`. Sets the IP or hostname where Wrangler should listen for the OAuth callback.
1374+
- `--callback-port` <Type text="string" /> <MetaInfo text="optional" />
1375+
- Defaults to `8976`. Sets the port where Wrangler should listen for the OAuth callback.
13731376

13741377
:::note
13751378

13761379
`wrangler login` uses all the available scopes by default if no flags are provided.
13771380
:::
13781381

1382+
<Render file="wrangler-commands/global-flags" product="workers" />
1383+
13791384
If Wrangler fails to open a browser, you can copy and paste the URL generated by `wrangler login` in your terminal into a browser and log in.
13801385

13811386
### Use `wrangler login` on a remote machine

0 commit comments

Comments
 (0)