Build

CLI Reference

Lookup reference for global options, environment variables, configuration resolution, profiles, exit codes, and common error troubleshooting.

Updated March 2026

Global Options

These flags work on every command. Place them before the command name.

FlagShortDescription
--profile NAME-pUse a named profile (default: default)
--output FORMAT-oOutput format: table, json, csv. JSON is auto-selected when output is piped (e.g. by an LLM agent)
--quiet-qMinimal output — IDs only. Useful for agents chaining commands
--verbose-vDebug logging (request IDs, timing)
--yes-ySkip confirmation prompts
--dry-runShow what a mutation would do without executing. Recommended for agent-initiated writes before human approval
--no-colorDisable terminal colors
--versionShow CLI version

Environment Variables

VariableDescriptionDefault
LEV_API_KEYAPI key for authentication
LEV_API_URLAPI base URLhttps://api.levcapital.com
LEV_PROFILEActive profile namedefault
LEV_OUTPUTDefault output formatauto-detect
LEV_API_TIMEOUTRequest timeout in seconds30
LEV_CA_BUNDLECustom CA cert path for corporate proxies
LEV_DEBUG_LOGFile path for structured debug log output

Configuration

Settings resolve in priority order:

View the resolved configuration for the current context:

lev config show

Profiles

Named profiles let you switch between environments or accounts without re-authenticating.

# Create a profile
lev auth login --profile staging
 
# Use a profile for a single command
lev -p staging deals list
 
# Switch the default profile
lev auth switch staging

Each profile stores its own API URL and keychain credential. Profile names are arbitrary strings.

Exit Codes

CodeMeaning
0Success
1General error
2Usage error (bad args, missing --yes when piped)
3Authentication failed
4Insufficient permissions (scope)
5Resource not found
6Validation error (bad input)
7Rate limited
8Server error
9Network error (connection failed, timeout)
130Interrupted (Ctrl+C)

See CLI Workflows for patterns that branch on these codes.

Troubleshooting

CLI docs complete

Explore the REST API reference for full field definitions and response schemas, or see the Workflows section for MCP and agent patterns.

More in this section