Getting Started
This guide explains how to get started with Kirox CLI.
Prerequisites
To use Kirox CLI, you need the following environment:
- Node.js 18.0.0 or higher: Download from Node.js official website
- npm 9 or higher: Included with Node.js
- Git: Version control tool (optional)
Verify versions:
node --version # v18.0.0 or higher
npm --version # 9.0.0 or higherInstallation
Kirox CLI does not require global installation and can be run immediately with the npx command.
Run with npx (Recommended)
npx kirox owner/repo -p project-nameThis method is recommended as it always runs the latest version.
Global Installation
If you use it frequently, you can install it globally:
npm install -g kirox
kirox owner/repo -p project-nameFirst Run
Basic Usage
Fetch specifications from a GitHub repository:
npx kirox yukihirop/my-project -p my-specInteractive Mode
Running without options allows you to configure interactively:
npx kiroxFollow the prompts to enter:
- GitHub repository (e.g.,
yukihirop/my-project) - Branch (optional)
- Subdirectory (optional)
- Project name (multiple selection available)
GitHub Authentication (Optional)
To access private repositories or to relax GitHub API rate limits, set up a Personal Access Token (PAT).
Obtaining a PAT
- Go to GitHub Settings → Developer settings → Personal access tokens
- Click "Generate new token (classic)"
- Select the following scopes:
public_repo: Read public repositoriesrepo: Read private repositories (if needed)
- Generate and copy the token
Setting Environment Variables
# macOS / Linux
export GITHUB_TOKEN=ghp_your_token_here
# Windows (PowerShell)
$env:GITHUB_TOKEN="ghp_your_token_here"To set permanently, add to .bashrc, .zshrc, or .profile:
echo 'export GITHUB_TOKEN=ghp_your_token_here' >> ~/.bashrc
source ~/.bashrcVerification
Verify that Kirox CLI is working correctly with the following command:
npx kirox --helpIf the help message is displayed, the installation was successful.
Next Steps
- Basic Usage: Details on commands and options
- Advanced Usage: Configuration files and advanced features
- CLI Reference: Reference for all commands
