Configuration
Configuring the Kubiya CLI using configuration files and environment variables.
Configuration
The Kubiya CLI can be configured using the config
command, configuration files, or environment variables to customize its behavior to suit your workflow.
Using the Config Command
The most straightforward way to configure the CLI is with the config
command:
Configuration File
Default Config File Location
The CLI uses a YAML configuration file located at:
- Linux/macOS:
~/.kubiya/config.yaml
- Windows:
%USERPROFILE%\.kubiya\config.yaml
A minimal configuration file might look like this:
Environment Variables
Environment variables override values from the configuration file. This is useful for temporary changes or CI/CD environments.
Available Environment Variables
Variable | Description | Default |
---|---|---|
KUBIYA_API_KEY | Your Kubiya API key | - |
KUBIYA_API_URL | The Kubiya API endpoint | https://api.kubiya.ai/v1 |
KUBIYA_CONFIG_PATH | Path to the configuration file | ~/.kubiya/config.yaml |
KUBIYA_OUTPUT | Default output format (json , yaml , table ) | table |
KUBIYA_DEFAULT_TEAMMATE | Default teammate name for chat commands | - |
KUBIYA_PROFILE | Configuration profile to use | default |
KUBIYA_TIMEOUT | Global timeout for API requests (seconds) | 60 |
KUBIYA_LOG_LEVEL | Logging level (debug , info , warn , error ) | info |
KUBIYA_NO_COLOR | Disable colored output if set to any value | - |
Configuration Precedence
The CLI resolves configuration in the following order (highest precedence first):
- Command-line flags (e.g.,
--output json
) - Environment variables (e.g.,
KUBIYA_OUTPUT=json
) - Configuration file values
- Default values
Working with Multiple Environments
For the most secure setup, use kubiya auth login
rather than storing API keys in your configuration file.
Never commit your configuration file with API keys to version control. Use environment variables or a secure secrets manager for sensitive values in shared environments.