Basic Usage
This guide explains the basic commands and options of Kirox CLI.
Basic Commands
Fetch Files from Repository
bash
npx kirox <owner/repo> -p <project-name>Example:
bash
npx kirox yukihirop/my-project -p my-specThis will fetch:
- All files under
.kiro/specs/my-spec/ - All files under
.kiro/steering/
Interactive Mode
Running without options allows interactive configuration:
bash
npx kiroxMain Options
Project Specification (-p, --project)
Specify the project(s) to fetch:
bash
# Single project
npx kirox owner/repo -p project1
# Multiple projects (comma-separated)
npx kirox owner/repo -p project1,project2,project3Update Tracking (--track)
Track changes in the remote repository:
bash
npx kirox owner/repo -p project1 --trackDefault is false. When --track is specified, only changed files will be fetched on subsequent runs.
Fetch Steering Only (--steering)
Fetch only .kiro/steering/ and skip project specifications:
bash
npx kirox owner/repo --steeringSkip Overwrite Confirmation (-f, --force)
Overwrite existing files without confirmation:
bash
npx kirox owner/repo -p project1 --forceWarning
The --force option overwrites existing files without warning. Use with caution.
Dry Run (--dry-run)
Preview which files would be fetched without actually writing them:
bash
npx kirox owner/repo -p project1 --dry-runVerbose Logging (--verbose)
Display detailed logs:
bash
npx kirox owner/repo -p project1 --verboseUsage Examples
Basic Fetch
bash
$ npx kirox yukihirop/my-project -p api-spec
✓ Fetching files from yukihirop/my-project...
✓ [1/5] requirements.md
✓ [2/5] design.md
✓ [3/5] tasks.md
✓ [4/5] spec.json
✓ [5/5] steering/tech.md
Summary:
Succeeded: 5 files
Failed: 0 filesFetch Multiple Projects
bash
$ npx kirox yukihirop/my-project -p api-spec,web-spec
✓ Fetching files from yukihirop/my-project...
✓ Project: api-spec (5 files)
✓ Project: web-spec (4 files)
Summary:
Succeeded: 9 files
Failed: 0 filesPreview with Dry Run
bash
$ npx kirox yukihirop/my-project -p api-spec --dry-run
[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
No files were written (dry run mode).Display Help
Display command help:
bash
npx kirox --helpDisplay subcommand help:
bash
npx kirox add --help
npx kirox completion --helpNext Steps
- Advanced Usage: Configuration files, branch specification, subdirectory support
- CLI Reference: Details on all commands and options
- Troubleshooting: Common issues and solutions
