Skip to content

Flags & Options

Global flags available on all NexusCore CLI commands.

Global Flags

FlagShortDescription
--help-hShow help for a command
--version-vPrint the CLI version
--verboseEnable verbose output (debug logging)
--quiet-qSuppress non-essential output
--config <path>Path to config file (default: ~/.nexuscore/config.yaml)
--no-colorDisable colored output
--jsonOutput in JSON format (where supported)

Usage Examples

bash
# Show help for a specific command
nexus-cli auth login --help

# Print version
nexus-cli --version

# Run with verbose output
nexus-cli chat --verbose

# Suppress non-essential output
nexus-cli run "Create a test file" --quiet

# Use a custom config file
nexus-cli chat --config ./my-config.yaml

# Output in JSON (useful for scripting)
nexus-cli models list --json
nexus-cli auth status --json

Environment Variables

Global behavior can also be controlled via environment variables. Environment variables take precedence over config file values but are overridden by command-line flags.

General

VariableDescriptionDefault
NEXUS_CONFIGPath to config file~/.nexuscore/config.yaml
NEXUS_VERBOSEEnable verbose output (1 or 0)0
NEXUS_NO_COLORDisable colored output (1 or 0)0
NEXUS_LOG_LEVELLog level (debug, info, warn, error)info

Model Configuration

VariableDescriptionDefault
NEXUS_MODEL_PROVIDERDefault model provider name
NEXUS_API_KEYAPI key for the default provider
NEXUS_MODELDefault model name
NEXUS_BASE_URLCustom API base URL for the default provider
OPENAI_API_KEYOpenAI API key
ANTHROPIC_API_KEYAnthropic API key
GOOGLE_API_KEYGoogle AI API key

Authentication

VariableDescriptionDefault
NEXUS_AUTH_URLAuth service URLhttps://api.nexus-suite.dev
NEXUS_TOKENJWT token (for CI/automation — bypasses interactive login)

Sync

VariableDescriptionDefault
NEXUS_SYNC_ENABLEDEnable encrypted sync (1 or 0)0

Precedence Order

Configuration is resolved in this order (highest priority first):

  1. Command-line flags--model, --verbose, etc.
  2. Environment variablesNEXUS_MODEL, NEXUS_VERBOSE, etc.
  3. Project-level config.nexuscore/config.yaml in the current workspace
  4. User-level config~/.nexuscore/config.yaml
  5. Built-in defaults

Released under the MIT License.