Skip to content

Commit 6583b84

Browse files
committed
move cli env var from docs to CONTRIBUTING.md
1 parent b06167b commit 6583b84

2 files changed

Lines changed: 18 additions & 19 deletions

File tree

CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ pnpm run dev:apify create my-actor
3333

3434
`pnpm run dev:actor` does the same for the in-Actor `actor` binary.
3535

36+
## Environment variables
37+
38+
Use the following environment variables to configure the CLI.
39+
40+
### `APIFY_CONSOLE_URL`
41+
42+
Changes the base URL of Apify Console that the CLI prints and opens. For example, the run, build, dataset and key-value store URLs, or the browser page for the `apify login` flow.
43+
44+
The default value is `https://console.apify.com`.
45+
46+
To point the CLI at a local Console instance during development, use:
47+
48+
```bash
49+
export APIFY_CONSOLE_URL=http://localhost:3000
50+
```
51+
52+
Note that if `APIFY_CONSOLE_URL` points at `localhost`, `apify login` validates your token against `http://localhost:3333`. All other commands still call the production API at `https://api.apify.com`.
53+
3654
## Code style
3755

3856
The repo uses three tools, wired together via a pre-commit hook (`husky` + `lint-staged`):

docs/vars.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,3 @@ You can use the CLI to manage secrets environment variables:
7474
...
7575
}
7676
```
77-
78-
## CLI environment variables
79-
80-
Use the following environment variables to configure the CLI.
81-
82-
### `APIFY_CONSOLE_URL`
83-
84-
Changes the base URL of Apify Console that the CLI prints and opens. For example, the run, build, dataset and key-value store URLs, or the browser page for the `apify login` flow.
85-
86-
The default value is `https://console.apify.com`.
87-
88-
To point the CLI at a local Console instance during development, use:
89-
90-
```bash
91-
export APIFY_CONSOLE_URL=http://localhost:3000
92-
```
93-
94-
Note that if `APIFY_CONSOLE_URL` points at `localhost`, `apify login` validates your token against `http://localhost:3333`. All other commands still call the production API at `https://api.apify.com`.
95-

0 commit comments

Comments
 (0)