Skip to content

Commit dc28ec0

Browse files
authored
Add PowerShell snippet for setting TARGET_API_URL environment variable (#36800)
1 parent 9db49eb commit dc28ec0

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
1. If you're migrating to {% data variables.enterprise.data_residency %}, for convenience, set an environment variable for the **base API URL** for your enterprise. For example:
1+
1. If you're migrating to {% data variables.enterprise.data_residency %}, for convenience, set an environment variable for the **base API URL** for your enterprise.
22

3-
```shell copy
4-
export TARGET_API_URL="https://api.{% data variables.enterprise.data_residency_example_domain %}"
5-
```
3+
* If you're using Terminal, use the `export` command.
4+
5+
```shell copy
6+
export TARGET_API_URL="https://api.{% data variables.enterprise.data_residency_example_domain %}"
7+
```
8+
9+
* If you're using PowerShell, use the `$env` command.
10+
11+
```shell copy
12+
$env:TARGET_API_URL="https://api.{% data variables.enterprise.data_residency_example_domain %}"
13+
```
614
715
You'll use this variable with the `--target-api-url` option in commands you run with the {% data variables.product.prodname_cli %}.

0 commit comments

Comments
 (0)