codity config

View and manage CLI configuration. All settings are stored in ~/.codity/config.yaml.

Subcommands

config show

Display current configuration values.

codity config show

Shows: environment, API URL, access token (masked), refresh token (masked), token expiry, user ID, workspace ID, and auth provider.


config set

Set a specific configuration value.

codity config set <key> <value>

Valid keys:

KeyDescription
envEnvironment (local or production)
api_urlAPI endpoint URL
access_tokenJWT access token
refresh_tokenRefresh token
token_expiryToken expiration timestamp
user_idUser ID
workspace_idActive workspace ID
auth_providerAuth provider (github, gitlab, bitbucket, azure)

Example:

codity config set env production
codity config set workspace_id ws_abc123

config reset

Clear all configuration and return to defaults.

codity config reset

config set-pat

Store a VCS Personal Access Token for PR operations.

codity config set-pat

This interactive command prompts you to:

  1. Select your VCS provider (GitHub, GitLab, Bitbucket, or Azure DevOps)
  2. Enter your Personal Access Token
  3. Optionally add a label

The token is encrypted and stored on the server — never in plaintext locally.