kirox Command
Fetches files from .kiro/specs/ and .kiro/steering/ in GitHub repositories.
Syntax
npx kirox [<owner/repo>[#branch]] [options]Arguments
<owner/repo>[#branch]
Specify a GitHub repository (optional).
Format:
owner/repo: Specify repository only (uses default branch)owner/repo#branch: Specify branch as well
Examples:
npx kirox yukihirop/my-project
npx kirox yukihirop/my-project#develop
npx kirox yukihirop/my-project#feature/new-featureWhen omitted: Interactive mode prompts for input
Options
-p, --project <projects>
Specify project name(s) to fetch (comma-separated for multiple).
Type: string
Examples:
# Single project
npx kirox yukihirop/my-project -p api-spec
# Multiple projects
npx kirox yukihirop/my-project -p api-spec,web-spec,mobile-specWhen omitted:
- Non-interactive mode: Error (except when using
--steeringoption) - Interactive mode: Auto-detect and suggest available projects
--track
Track changes in remote repository.
Type: booleanDefault: false
Behavior:
- First run: Fetch all files and save metadata
- Subsequent runs: Fetch only changed files
Example:
npx kirox yukihirop/my-project -p api-spec --track--steering
Fetch only .kiro/steering/ and skip project specifications.
Type: booleanDefault: false
Example:
npx kirox yukihirop/my-project --steeringTip
Useful when you only want to fetch steering information shared across the team.
-f, --force
Overwrite existing files without confirmation.
Type: booleanDefault: false
Example:
npx kirox yukihirop/my-project -p api-spec --forceWarning
The --force option overwrites existing files without warning. Use with caution.
--dry-run
Simulate file writing and display which files would be fetched.
Type: booleanDefault: false
Example:
npx kirox yukihirop/my-project -p api-spec --dry-runSample Output:
[DRY RUN] The following files would be fetched:
.kiro/specs/api-spec/requirements.md
.kiro/specs/api-spec/design.md
.kiro/specs/api-spec/tasks.md
.kiro/specs/api-spec/spec.json
.kiro/steering/tech.md--verbose
Display detailed logs.
Type: booleanDefault: false
Example:
npx kirox yukihirop/my-project -p api-spec --verboseSample Output:
[DEBUG] Loading config from .kiroxrc.json
[DEBUG] Fetching repository: yukihirop/my-project
[DEBUG] Branch: main
[DEBUG] Project: api-spec
[INFO] Fetching .kiro/specs/api-spec/requirements.md...
[INFO] Fetched 1024 bytes--subdirectory <path>
Fetch .kiro/ files from a subdirectory within the repository.
Type: string
Examples:
# Fetch from backend directory in monorepo
npx kirox yukihirop/monorepo -p api-spec --subdirectory backend
# Nested subdirectory
npx kirox yukihirop/monorepo -p api-spec --subdirectory packages/core-c, --config <path>
Specify configuration file path.
Type: stringDefault: .kiroxrc.json
Example:
npx kirox yukihirop/my-project -p api-spec --config custom-config.json-h, --help
Display help message.
Example:
npx kirox --help-V, --version
Display Kirox CLI version.
Example:
npx kirox --versionInteractive Mode
Run without arguments and options to configure interactively.
npx kiroxPrompts:
- Repository input: Enter in
owner/repoformat - Branch selection: Select from available branches with searchable checkbox (optional)
- Subdirectory selection: Select from detected subdirectories (optional)
- Project selection: Select from available projects with searchable checkbox (multiple selection available)
Usage Examples
Basic Usage
# Fetch specific project
npx kirox yukihirop/my-project -p api-specSpecify Branch
# Fetch from develop branch
npx kirox yukihirop/my-project#develop -p api-spec
# Fetch from feature/new-feature branch
npx kirox yukihirop/my-project#feature/new-feature -p api-specMultiple Projects
# Fetch multiple projects
npx kirox yukihirop/my-project -p api-spec,web-spec,mobile-specSubdirectory
# Fetch from backend directory in monorepo
npx kirox yukihirop/monorepo -p api-spec --subdirectory backendOption Combinations
# Dry run + verbose logs
npx kirox yukihirop/my-project -p api-spec --dry-run --verbose
# Force overwrite + update tracking
npx kirox yukihirop/my-project -p api-spec --force --track
# Steering only + custom config file
npx kirox yukihirop/my-project --steering --config team-config.jsonExecution Flow
- Load configuration:
.kiroxrc.jsonor custom config file - GitHub API authentication:
GITHUB_TOKENenvironment variable (optional) - Fetch repository information: Branch, subdirectory, project list
- Fetch files: Fetch files in parallel (max 5 concurrent)
- Write files: Save to local
.kiro/directory - Display summary: Show success/failure file counts
Environment Variables
GITHUB_TOKEN
Used for GitHub API authentication.
export GITHUB_TOKEN=ghp_your_token_hereRequired for accessing private repositories or relaxing rate limits.
Exit Codes
| Code | Description |
|---|---|
0 | Success |
1 | Argument error |
2 | GitHub API error |
3 | Filesystem error |
4 | Configuration error |
Related Pages
- Basic Usage: Basic command usage
- Advanced Usage: Configuration files, branch specification, subdirectory support
- Troubleshooting: Common issues and solutions
