settings
Manage persisted token and profile configuration.
Syntax
gfrm settings <action> [options]
Actions
init— bootstrap token env references for providersset-token-env— store the env var name that should resolve a provider tokenset-token-plain— store a plain provider token valueunset-token— remove the stored token configuration for a providershow— print the effective merged settings with secrets masked
Examples
gfrm settings init --profile work
gfrm settings set-token-env --provider github --env-name GITHUB_TOKEN --profile work
gfrm settings set-token-plain --provider gitlab --profile work
gfrm settings unset-token --provider github --profile work
gfrm settings show --profile work
More practical examples:
# Store settings in the local repository instead of the global config
gfrm settings init --profile work --local
# Prefer env-backed token resolution for shared workstations and CI
gfrm settings set-token-env --provider github --env-name GITHUB_TOKEN --profile work
# Use a plain token only when env management is not available
gfrm settings set-token-plain --provider gitlab --profile work
Help and action usage
gfrm settings --helpprints the settings action catalog.gfrm settings <action> --helpprints action-specific usage and options.gfrm settings init --helpincludes--profile,--local, and--yes.gfrm settings set-token-env --helpincludes--provider,--env-name,--profile, and--local.gfrm settings set-token-plain --helpincludes--provider,--token,--profile, and--local.gfrm settings unset-token --helpincludes--provider,--profile, and--local.gfrm settings show --helpincludes--profile.
Notes
- effective settings are
deep-merge(global, local) settings showmasks plain tokens- use
token_envwhen possible
Example masked output from settings show:
profiles:
work:
github:
token_env: GITHUB_TOKEN
gitlab:
token_plain: "***"