Skip to content

CLI Reference

Reference for all Kirox CLI commands and options.

Command List

kirox

Main command. Fetches .kiro/ files from GitHub repositories.

bash
npx kirox <owner/repo> [options]

add

Adds new projects to existing local projects.

bash
npx kirox add <owner/repo> [options]

completion

Outputs shell completion scripts.

bash
npx kirox completion <shell>

Global Options

Options available for all commands:

OptionShortDescription
--help-hDisplay help
--version-VDisplay version

Common Options

Options available for kirox and add commands:

OptionShortTypeDescription
--project-pstringProject name(s) (comma-separated for multiple)
--force-fbooleanSkip overwrite confirmation
--dry-runbooleanSimulate file writing
--verbosebooleanDisplay detailed logs
--trackbooleanEnable update tracking
--steeringbooleanFetch steering only
--subdirectorystringSubdirectory path
--config-cstringConfiguration file path

Usage Examples

Basic Usage

bash
# Fetch specific project
npx kirox yukihirop/my-project -p api-spec

# Interactive mode
npx kirox

# Display help
npx kirox --help

With Options

bash
# Fetch multiple projects
npx kirox yukihirop/my-project -p api-spec,web-spec

# Specify branch
npx kirox yukihirop/my-project#develop -p api-spec

# No confirmation
npx kirox yukihirop/my-project -p api-spec --force

# Dry run
npx kirox yukihirop/my-project -p api-spec --dry-run

# Verbose logs
npx kirox yukihirop/my-project -p api-spec --verbose

Subcommands

bash
# Add project
npx kirox add yukihirop/my-project -p new-project

# Generate shell completion scripts
npx kirox completion bash > /etc/bash_completion.d/kirox
npx kirox completion zsh > ~/.zsh/completion/_kirox
npx kirox completion fish > ~/.config/fish/completions/kirox.fish

Next Steps

Released under the MIT License.