Skip to content

Support BR_CONFIG_DIR for isolated authentication configs#22

Merged
novr merged 1 commit into
mainfrom
cursor/br-config-dir
Jul 24, 2026
Merged

Support BR_CONFIG_DIR for isolated authentication configs#22
novr merged 1 commit into
mainfrom
cursor/br-config-dir

Conversation

@novr

@novr novr commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add BR_CONFIG_DIR to override the global config directory (config.yml), similar to gh's GH_CONFIG_DIR
  • Resolve relative paths from the process working directory at startup; empty string is treated as unset
  • Document direnv usage for switching Bitrise accounts without built-in profiles

Test plan

  • mise exec go@latest -- go test ./internal/config/...
  • mise exec go@latest -- go test ./...
  • mise exec go@latest -- go vet ./...
  • BR_CONFIG_DIR="$(mktemp -d)" ./br config show shows the overridden config path

Closes #21

Allow overriding the global config directory via BR_CONFIG_DIR so multiple Bitrise accounts can be switched with direnv or similar tools, without adding profile support to the CLI.
@novr
novr merged commit 7ec5c7d into main Jul 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support BR_CONFIG_DIR for isolated authentication configs

1 participant