Environment Variables¶
Environment variables that affect Stack's behavior.
Authentication¶
GITHUB_TOKEN¶
GitHub personal access token or OAuth token.
Takes precedence over stored credentials.
GITLAB_TOKEN¶
GitLab personal access token.
Takes precedence over stored credentials.
Debugging¶
RUST_LOG¶
Control log verbosity.
# Enable debug logging
export RUST_LOG=debug
# Enable trace logging (very verbose)
export RUST_LOG=trace
# Filter by module
export RUST_LOG=stack_core=debug,stack_github=trace
RUST_BACKTRACE¶
Show backtraces on errors.
Git Configuration¶
Stack respects standard Git environment variables:
GIT_DIR¶
Override the Git directory location.
GIT_WORK_TREE¶
Override the working tree location.
GIT_AUTHOR_NAME / GIT_AUTHOR_EMAIL¶
Override commit author information.
export GIT_AUTHOR_NAME="Your Name"
export GIT_AUTHOR_EMAIL="[email protected]"
Editor¶
EDITOR / VISUAL¶
Editor for commit messages and interactive operations.
Example: CI Environment¶
For CI/CD pipelines:
Example: Development¶
For local development:
Precedence¶
For authentication, precedence is:
- Environment variables (highest)
- Stored credentials (
~/.config/stack/credentials.json) - Git credential helpers (lowest)