Skip to content

Kiro CLI Workflows

While this workshop focuses on Kiro IDE, Kiro CLI offers powerful capabilities for developers who prefer terminal-based workflows or need to integrate Kiro into automated pipelines.

The CLI excels at running autonomous agent sessions — long-running tasks where Kiro works independently with minimal intervention:

  • Complex refactoring across multiple files
  • Codebase-wide migrations
  • Extended debugging sessions
  • Multi-step feature implementation
  1. Install Kiro CLI

    Download from kiro.dev — the CLI is included with the IDE installation, or can be installed separately.

  2. Authenticate

    Terminal window
    kiro auth login

    This opens a browser for AWS Builder ID authentication.

  3. Start a chat session

    Terminal window
    kiro chat

    Opens an interactive chat session in your terminal.

  4. Run autonomous tasks

    Terminal window
    kiro agent "Refactor the authentication module to use JWT tokens"

    Starts an autonomous agent that works through the task independently.

Just like the IDE, you can select models in the CLI:

Terminal window
# Use a specific model
kiro chat --model claude-opus-4
# Use open weight models for cost efficiency
kiro chat --model qwen3-coder-next

The CLI includes powerful code analysis features:

Terminal window
# Analyse codebase structure
kiro analyze
# Generate documentation
kiro docs generate
# Find related code
kiro search "authentication flow"

Learn more in the Code Intelligence documentation.

A powerful workflow combines both tools:

  1. Plan in IDE — Use Spec mode to generate requirements and design
  2. Execute via CLI — Run autonomous agents for implementation
  3. Review in IDE — Use inline chat and checkpointing for refinement