cli-tool
cloud
devops
intermediate
AWS Kiro
📋 Copy All Commands
📄 Generate PDF
AWS Kiro is a specification-driven agentic IDE powered by Claude that transforms software development from prompt-based to structured, spec-first development workflows.
Installation & Setup
Command
Description
curl -fsSL https://kiro.aws.dev/install.sh \| sh
Install Kiro CLI
kiro --version
Check installed version
kiro auth login
Authenticate with AWS/Google/GitHub
kiro auth status
Check authentication status
kiro config init
Initialize configuration
kiro update
Update to latest version
Project Initialization
Command
Description
kiro init
Initialize new Kiro project
kiro init --template react
Initialize with React template
kiro init --template node-api
Initialize with Node.js API template
kiro init --template python-flask
Initialize with Flask template
kiro init --template nextjs
Initialize with Next.js template
kiro workspace create "project-name"
Create new workspace
Specification Management
Command
Description
kiro spec create "feature-name"
Create new feature specification
kiro spec edit "feature-name"
Edit existing specification
kiro spec validate
Validate current specifications
kiro spec list
List all specifications
kiro spec export spec.json
Export specifications
kiro spec import spec.json
Import specifications
Code Generation
Command
Description
kiro generate
Generate code from specifications
kiro generate --component Button
Generate specific component
kiro generate --api user-service
Generate API service
kiro generate --test
Generate test files
kiro generate --docs
Generate documentation
kiro generate --force
Force regeneration
Development Workflow
Command
Description
kiro dev start
Start development server
kiro dev build
Build project
kiro dev test
Run tests
kiro dev lint
Run linting
kiro dev format
Format code
kiro dev watch
Watch for changes
AI Agent Commands
Command
Description
kiro agent task "implement user authentication"
Assign task to AI agent
kiro agent status
Check agent status
kiro agent history
View agent task history
kiro agent feedback "task-id" "feedback"
Provide feedback on task
kiro agent retry "task-id"
Retry failed task
kiro agent cancel "task-id"
Cancel running task
Architecture & Design
Command
Description
kiro arch diagram
Generate architecture diagram
kiro arch analyze
Analyze current architecture
kiro arch suggest
Get architecture suggestions
kiro design system create
Create design system
kiro design components list
List design components
kiro design tokens export
Export design tokens
Rule Files & Configuration
Command
Description
kiro rules create
Create new rule file
kiro rules apply
Apply rule file to project
kiro rules validate
Validate rule file
kiro rules list
List available rules
kiro config set key value
Set configuration value
kiro config get key
Get configuration value
Model Context Protocol (MCP)
Command
Description
kiro mcp list
List available MCP servers
kiro mcp connect server-name
Connect to MCP server
kiro mcp disconnect server-name
Disconnect from MCP server
kiro mcp status
Show MCP connection status
kiro mcp tools
List available MCP tools
File Operations
Command
Description
kiro file create "path/file.js"
Create new file
kiro file edit "path/file.js"
Edit existing file
kiro file analyze "path/file.js"
Analyze file
kiro file refactor "path/file.js"
Refactor file
kiro file optimize "path/file.js"
Optimize file
kiro file template "component"
Create from template
Testing & Quality
Command
Description
kiro test generate
Generate test files
kiro test run
Run all tests
kiro test coverage
Generate coverage report
kiro test e2e
Run end-to-end tests
kiro quality check
Run quality checks
kiro security scan
Run security scan
Deployment & CI/CD
Command
Description
kiro deploy preview
Deploy preview environment
kiro deploy staging
Deploy to staging
kiro deploy production
Deploy to production
kiro ci generate
Generate CI/CD configuration
kiro ci validate
Validate CI/CD setup
kiro env create "environment-name"
Create environment
Documentation
Command
Description
kiro docs generate
Generate project documentation
kiro docs api
Generate API documentation
kiro docs components
Generate component docs
kiro docs serve
Serve documentation locally
kiro docs deploy
Deploy documentation
kiro readme generate
Generate README file
Git Integration
Command
Description
kiro git commit
AI-generated commit messages
kiro git branch "feature-description"
Create feature branch
kiro git pr create
Create pull request
kiro git review
Review code changes
kiro git merge-check
Check merge conflicts
kiro git changelog
Generate changelog
Database & Schema
Command
Description
kiro db schema generate
Generate database schema
kiro db migrate create "migration-name"
Create migration
kiro db migrate run
Run migrations
kiro db seed generate
Generate seed data
kiro db analyze
Analyze database structure
API Development
Command
Description
kiro api generate
Generate API endpoints
kiro api spec create
Create API specification
kiro api test generate
Generate API tests
kiro api docs
Generate API documentation
kiro api validate
Validate API specification
kiro api mock
Create API mock server
Frontend Development
Command
Description
kiro ui component create "ComponentName"
Create UI component
kiro ui page create "PageName"
Create new page
kiro ui theme generate
Generate theme configuration
kiro ui icons optimize
Optimize icon assets
kiro ui responsive check
Check responsive design
Backend Development
Command
Description
kiro backend service create "ServiceName"
Create backend service
kiro backend middleware create "MiddlewareName"
Create middleware
kiro backend auth setup
Setup authentication
kiro backend cache configure
Configure caching
kiro backend logging setup
Setup logging
Monitoring & Analytics
Command
Description
kiro monitor setup
Setup monitoring
kiro analytics configure
Configure analytics
kiro logs analyze
Analyze application logs
kiro performance check
Check performance metrics
kiro errors track
Track error patterns
Collaboration
Command
Description
kiro team invite "email@domain.com"
Invite team member
kiro team permissions set "user" "role"
Set user permissions
kiro team activity
View team activity
kiro share workspace
Share workspace
kiro review request "feature"
Request code review
Advanced Features
Hooks & Automation
Command
Description
kiro hooks list
List available hooks
kiro hooks create "hook-name"
Create custom hook
kiro hooks enable "hook-name"
Enable hook
kiro hooks disable "hook-name"
Disable hook
kiro automation create "workflow"
Create automation workflow
Custom Templates
Command
Description
kiro template create "template-name"
Create custom template
kiro template list
List available templates
kiro template share "template-name"
Share template
kiro template import "template-url"
Import template
Extensions
Command
Description
kiro extension list
List installed extensions
kiro extension install "extension-name"
Install extension
kiro extension uninstall "extension-name"
Uninstall extension
kiro extension create "extension-name"
Create custom extension
Configuration Files
kiro.config.json
{
"project": {
"name": "my-app",
"type": "fullstack",
"framework": "react"
},
"ai": {
"model": "claude-3.5-sonnet",
"temperature": 0.7,
"maxTokens": 4000
},
"rules": {
"codeStyle": "prettier",
"testing": "jest",
"linting": "eslint"
}
}
.kiro/rules.yaml
coding_standards:
- use_typescript: true
- prefer_functional_components: true
- max_function_length: 50
- require_tests: true
architecture:
- follow_mvc_pattern: true
- use_dependency_injection: true
- implement_error_handling: true
security:
- validate_inputs: true
- use_https: true
- implement_auth: true
Environment Variables
Variable
Description
KIRO_API_KEY
Kiro API key
KIRO_PROJECT_ID
Project identifier
KIRO_WORKSPACE
Workspace path
KIRO_MODEL
Default AI model
KIRO_TEMPERATURE
AI temperature setting
Troubleshooting
Command
Description
kiro doctor
Diagnose installation issues
kiro logs show
Show application logs
kiro debug enable
Enable debug mode
kiro cache clear
Clear application cache
kiro reset workspace
Reset workspace state
Best Practices
Start with clear, detailed specifications
Use rule files to maintain consistency
Leverage MCP for external tool integration
Implement proper testing strategies
Use version control for specifications
Regular code reviews and quality checks
Monitor performance and security
Document architecture decisions
Collaborate effectively with team members
Keep dependencies updated
Integration Examples
Full-Stack Development
kiro init --template fullstack
kiro spec create "user-management"
kiro generate --api --frontend
kiro test generate
kiro deploy preview
Microservices Architecture
kiro arch diagram --type microservices
kiro service create "user-service"
kiro service create "payment-service"
kiro api generate --service user-service
kiro deploy staging
CI/CD Pipeline
kiro ci generate --platform github
kiro test coverage --threshold 80
kiro security scan
kiro deploy production --auto