-
Notifications
You must be signed in to change notification settings - Fork 0
[DX-1143] Docs: add environment variables usage documentation #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e72246e
docs: add comprehensive environment variables reference and cross-lin…
sacOO7 30195aa
Addressed review comments on env. variables doc by copilot and claude
sacOO7 f662a20
Added sections for obtaining API_KEY, Token and Access token
sacOO7 9fc5a12
Split env. variables into General-Usage and Development-Stage-Usage t…
sacOO7 3cc319a
Implemented `ably env` command for environment variables reference
sacOO7 98570f0
Fixed env. variables usage as per review comments
sacOO7 e2cf7ba
Addressed copilot review comment, simplified env. command example des…
sacOO7 8bbfde8
Trimmed env. vars documentation to only whats needed, brief descripti…
sacOO7 5c12357
Refactored `ably env` help doc as per review comments for both `ably …
sacOO7 00cd1aa
Trimmed env. variables documentation and data to keep only essential …
umair-ably 672dca5
Revert "Trimmed env. variables documentation and data to keep only es…
umair-ably 543b1b3
Trimmed env. variables documentation while keeping per-variable detai…
umair-ably b67e664
Updated env integration test to match trimmed minimal reference output
umair-ably File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Environment Variables — Development Stage Usage | ||
|
|
||
| These variables are for CLI contributors, development, testing, and internal modes. They are **not intended for end-user configuration** unless explicitly noted. | ||
|
|
||
| > For user-facing environment variables (authentication, configuration, behavioral control, host overrides), run `ably env` in your terminal. | ||
|
|
||
| --- | ||
|
|
||
| ## Quick Reference | ||
|
|
||
| | Variable | Category | Purpose | Default | | ||
| | --- | --- | --- | --- | | ||
| | `ABLY_SHOW_DEV_FLAGS` | Development | Reveal hidden dev flags | Not set | | ||
| | `ABLY_CONTROL_HOST` | Host Override | Override Control API host | `control.ably.net` | | ||
| | `ABLY_DASHBOARD_HOST` | Host Override | Override Ably dashboard URL | `https://ably.com` | | ||
| | `DEBUG` | Debugging | oclif framework debug output | Not set | | ||
| | `TERMINAL_DIAGNOSTICS` | Debugging | Terminal state diagnostics | Not set | | ||
| | `ABLY_CLI_TEST_MODE` | Testing | Enable test mode | Not set | | ||
| | `SKIP_CONFIRMATION` | Testing | Auto-confirm prompts (test alias for `ABLY_CLI_NON_INTERACTIVE`) | Not set | | ||
| | `GENERATING_DOC` | Tooling | Doc generation mode | Not set | | ||
| | `CI` | Environment | CI detection | Not set | | ||
| | `ABLY_INTERACTIVE_MODE` | Internal | Interactive shell mode flag | Not set | | ||
| | `ABLY_WRAPPER_MODE` | Internal | Wrapper script detection | Not set | | ||
| | `ABLY_SUPPRESS_WELCOME` | Internal | Suppress welcome logo | Not set | | ||
| | `ABLY_WEB_CLI_MODE` | Internal | Web browser CLI mode | Not set | | ||
| | `ABLY_ANONYMOUS_USER_MODE` | Internal | Anonymous web CLI mode | Not set | | ||
| | `ABLY_CURRENT_COMMAND` | Internal | Current command tracking | Set automatically | | ||
| | `NODE_ENV` | Internal | Node environment override | Not set | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Environment Variables — General Usage | ||
|
|
||
| These environment variables are most commonly used during development as well as by end users in CI/CD pipelines, scripts, and production use. | ||
|
|
||
| > **Note:** The CLI does not automatically load `.env` files. Set environment variables in your shell, CI/CD configuration, or inline with your commands. | ||
|
|
||
| --- | ||
|
|
||
| ## Quick Reference | ||
|
|
||
| | Variable | Category | Purpose | Default | | ||
| | --- | --- | --- | --- | | ||
| | `ABLY_API_KEY` | Authentication | API key for data plane commands | None | | ||
| | `ABLY_TOKEN` | Authentication | Token/JWT for data plane commands | None | | ||
| | `ABLY_ACCESS_TOKEN` | Authentication | Access token for Control API commands | None | | ||
| | `ABLY_APP_ID` | App Selection | Default app for `--app` flag | None | | ||
| | `ABLY_CLI_CONFIG_DIR` | Configuration | Custom config directory | `~/.ably` | | ||
| | `ABLY_HISTORY_FILE` | Configuration | Custom history file location | `~/.ably/history` | | ||
| | `ABLY_CLI_DEFAULT_DURATION` | Behavior | Auto-exit long-running commands (seconds) | None (forever) | | ||
| | `ABLY_CLI_NON_INTERACTIVE` | Behavior | Auto-confirm "Did you mean?" prompts | Not set | | ||
| | `ABLY_ENDPOINT` | Host Override | Override Realtime/REST API endpoint | SDK default | | ||
|
|
||
| > For development, testing, debugging, and internal variables, see [Development Stage Usage](Development-Usage.md). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.