cli-tool
cloud
devops
intermediate
AWS Kiro
Copier toutes les commandes
Générer PDF
AWS Kiro est un IDE agentique piloté par Claude, qui transforme le développement logiciel de flux de travail rapides en flux de développement structurés.
Installation et configuration
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
Initialisation du projet
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
Gestion des spécifications
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
Génération de codes
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
Développement Flux de travail
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
Commandements des agents de l'IA
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
Fichiers de règles & 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
Modèle de protocole contextuel (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
Opérations de fichiers
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
Test et qualité
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
Déploiement & 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
Intégration Git
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
Base de données et schéma
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
Développement de l'API
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
Développement frontal
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
Développement du moteur
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
Surveillance et analyse
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
Caractéristiques avancées
Crochets & Automatisation
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
Modèles personnalisés
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
Prorogations
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
Fichiers de configuration
ikro.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/règles.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
```_
## Variables d'environnement
|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|
## Dépannage
|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|
## Meilleures pratiques
- Commencez par des spécifications claires et détaillées
- Utiliser les fichiers de règles pour maintenir la cohérence
- Tirer parti du MCP pour l'intégration d'outils externes
- Mettre en œuvre des stratégies d'essai appropriées
- Utiliser le contrôle de version pour les spécifications
- Examens réguliers du code et contrôles de qualité
- Surveiller les performances et la sécurité
- Décisions concernant l'architecture des documents
- Collaborer efficacement avec les membres de l'équipe
- Mettre à jour les dépendances
## Exemples d'intégration
### Développement complet
```bash
kiro init --template fullstack
kiro spec create "user-management"
kiro generate --api --frontend
kiro test generate
kiro deploy preview
```_
### Microservices Architecture
```bash
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