Skip to main content

Commands Overview

The CLI exposes all DevOps AI Toolkit server capabilities as commands. Commands are automatically generated from the server's OpenAPI specification.

Discovering Commands

To see all available commands:

dot-ai --help

To see help for a specific command:

dot-ai <command> --help

For details on what each feature does, see the server documentation.

Global Flags

These flags work with all commands:

FlagEnvironment VariableDescription
--server-urlDOT_AI_URLServer URL (default: http://localhost:3456)
--tokenDOT_AI_AUTH_TOKENAuthentication token
--outputDOT_AI_OUTPUT_FORMATOutput format: yaml or json (default: yaml)
--help-Show command help

Usage Patterns

Basic command execution:

dot-ai <command> [arguments] [flags]

With output format:

dot-ai <command> --output json

Remote server:

dot-ai <command> --server-url https://remote:3456 --token mytoken

Piping output:

dot-ai <command> --output json | jq '.result'

Next Steps