ArqonShip CLI Reference¶
Installation¶
# Build from source
cd ArqonHPO
cargo build -p ship --release
# Add to PATH (optional)
cp target/release/ship ~/.local/bin/arqon
# OR
alias arqon='./target/release/ship'
Global Options¶
arqon [OPTIONS] <COMMAND>
Options:
--config <PATH> Path to config file [default: .arqon/config.toml]
-h, --help Print help
-V, --version Print version
Commands¶
arqon init¶
Initialize ArqonShip in the current repository.
Behavior:
- Creates
.arqon/directory - Generates default
config.toml - If config exists, does nothing
Exit Codes:
0: Success1: Error creating files
arqon scan¶
Build the Codebase Oracle (parse files, build graph, generate embeddings).
Behavior:
- Walks project directory (respects
.gitignore) - Parses
.rsand.pyfiles via Tree-sitter - Extracts functions, structs, classes → SQLite graph
- Generates embeddings → LanceDB vectors
- Shows progress spinner
Output:
Exit Codes:
0: Success1: Parse or storage error
arqon chat¶
Query the Codebase Oracle using natural language.
Options: | Flag | Description | |------|-------------| | -q, --query <TEXT> | Search query (required) | | --cli | CLI output mode (default) |
Output:
Exit Codes:
0: Results found1: Error or no results
arqon heal¶
Autonomous self-healing for test failures.
Options: | Flag | Description | |------|-------------| | --log-file <PATH> | Cargo test JSON output file | | --max-attempts <N> | Max repair attempts [default: 2] |
Behavior:
- Parse test failures from log file
- Build repair context from Oracle
- Generate fix via LLM
- Apply fix (whole-block replacement)
- Verify (compile + lint + test)
- Log attempt to audit database
- Repeat up to max attempts
Exit Codes:
0: All failures healed1: Some failures remain
Note: LLM integration is currently stubbed. Full implementation requires model download.
arqon ship¶
Create a governed release (SemVer + Changelog + PR).
Options: | Flag | Description | |------|-------------| | --dry-run | Preview without creating PR | | --skip-checks | Skip pre-flight constitution checks |
Behavior:
- Run pre-flight checks:
- Clean git working directory
- All tests pass
- No untagged TODO items (optional)
- Parse commits since last tag
- Calculate next SemVer version
- Generate changelog
- Create GitHub PR (requires
GITHUB_TOKEN)
Example Output:
Starting release pipeline...
Next version: v1.2.0
Changelog:
## v1.2.0
### Features
- feat: Add authentication module
- feat: Implement rate limiting
### Bug Fixes
- fix: Resolve connection timeout
[DRY RUN] Would create release PR
Exit Codes:
0: Release PR created / dry-run complete1: Pre-flight check failed
Exit Codes Summary¶
| Code | Meaning |
|---|---|
0 | Command succeeded |
1 | Command failed (see stderr) |