Global Flags
Command line flags that can be used with any Nile CLI command
Global flags can be used with any command in the Nile CLI. They provide consistent functionality across all commands and help customize the CLI’s behavior.
Authentication Flags
Flags for authenticating with Nile’s services.
Authentication Examples
Flag | Description | Default |
---|---|---|
--api-key <key> | API key for authentication | Environment variable: NILE_API_KEY |
--workspace <name> | Workspace to use | Environment variable: NILE_WORKSPACE |
--db <name> | Database to use | Environment variable: NILE_DB |
Output Format Flags
Customize how command output is displayed.
Format Examples
Flag | Description | Default |
---|---|---|
--format <type> | Output format (human, json, csv) | human |
--color | Enable colored output | true |
--no-color | Disable colored output | - |
Host Configuration Flags
Configure connection endpoints for Nile services.
Host Configuration
Flag | Description | Default |
---|---|---|
--db-host <host> | Custom database host | Environment variable: NILE_DB_HOST |
--global-host <host> | Custom global host | Environment variable: NILE_GLOBAL_HOST |
--auth-url <url> | Custom authentication URL | Environment variable: NILE_AUTH_URL |
Debug Flag
Enable detailed output for troubleshooting.
Debug Examples
Flag | Description | Default |
---|---|---|
--debug | Enable debug output | false |
Environment Variables
All global flags can also be set using environment variables:
Environment Variables
Flag Precedence
When the same setting is specified in multiple ways, the following precedence order is used (highest to lowest):
- Command line flags
- Environment variables
- Configuration file values
- Default values
Precedence Examples
Was this page helpful?