Skip to content

CLI Reference

To see all available CLI commands and options, run:

Terminal window
uv run komodo --help

For help with a specific command:

Terminal window
uv run komodo <command> --help
FlagDescription
--version, -vShow the CLI version and exit
--helpShow help text and exit

Start the OAuth 2.0 Device Authorization Flow. Opens your browser for authentication and stores your JWT and refresh token in ~/.komodo/credentials.

Terminal window
uv run komodo login
FlagDescription
-E, --environmentTarget environment: production (default) or integration

Print the current JWT token for debugging or use with external tools.

Terminal window
uv run komodo jwt
FlagDescription
-E, --environmentTarget environment

Interactively select the active Komodo account from your available accounts.

Terminal window
uv run komodo account set

Print the currently selected account ID and slug.

Terminal window
uv run komodo account get

List all accounts you have access to.

Terminal window
uv run komodo account list

Manage service principal credentials for machine-to-machine (M2M) authentication. See the Authentication guide for usage.

Create a new service principal. Returns the client_id and client_secret.

Terminal window
uv run komodo service-principal create --name "my-service" --description "My service principal"
FlagDescription
--nameName for the service principal (required)
--descriptionDescription (optional)

List all service principals for the current account.

Terminal window
uv run komodo service-principal list

Delete a service principal by ID.

Terminal window
uv run komodo service-principal delete <SERVICE_PRINCIPAL_ID>

Generate the MCP server configuration JSON for your AI client. The output is automatically copied to your clipboard.

Terminal window
uv run komodo mcp show-config
FlagDescription
--name, -nCustom server name (default: komodo)

See the MCP Server guide for full setup instructions.

Start the MCP server with STDIO transport. Typically started automatically by your AI client via the configuration from show-config.

Terminal window
uv run komodo mcp run

Execute a single SQL statement against your Snowflake warehouse and display the results in a formatted table.

Terminal window
uv run komodo sql-execute "SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS LIMIT 10"
FlagDescription
-E, --environmentTarget environment

Start an interactive SQL shell for running multiple queries in a session. Type exit to quit. Errors in one statement do not exit the shell.

Terminal window
uv run komodo sql-shell
FlagDescription
-E, --environmentTarget environment

Install a Komodo CLI plugin package. Without arguments, installs komodo-internal-tools from Komodo’s internal package registry.

Terminal window
uv run komodo plugin install
FlagDescription
--packageSpecific package name to install
--pathInstall from a local path

Uninstall a plugin package.

Terminal window
uv run komodo plugin uninstall <PACKAGE_NAME>

List installed plugins and their registered CLI commands and MCP tools.

Terminal window
uv run komodo plugin list

Open the Komodo SDK documentation in your browser.

Terminal window
uv run komodo docs

Submit feedback about the Komodo SDK.

Terminal window
uv run komodo feedback

Beta commands are accessed through the komodo beta subgroup:

Terminal window
uv run komodo beta --help

Explore patient cohorts interactively using the Cohort API. This command provides a streamlined interface for rapid validation of clinical hypotheses via interactive prompts.

Terminal window
uv run komodo beta cohort-exploration

Features:

  • Simple mode — Guided prompts for diagnosis codes (ICD-10), procedure codes (CPT/HCPCS), and drug references (NDC)
  • Advanced mode — Build complex AND/OR/nested condition logic
  • Quick count — Fast approximate or exact distinct patient count
  • Comprehensive summary — Demographic breakdowns by time trends, gender, age, state, race/ethnicity, and mortality

Supported parameters:

  • Diagnosis Code (ICD-10 format, e.g., C34%, C50.1)
  • Procedure Code (CPT/HCPCS format, e.g., 96413, J9271)
  • Drug Reference (NDC Code, e.g., 12345-6789-01)
  • Time Duration (date range in mm/dd/yy format)

Options:

FlagDescription
-E, --environmentTarget environment (default: production)