Command Structure
The AIOX CLI follows a hierarchical command structure:Main Entry Points
Primary CLI:npx aiox-core or aiox (if installed globally)
- Installation and project management commands
- System diagnostics and information
- Framework updates and validation
aiox <category> (requires local installation)
- Workers discovery (
aiox workers) - Configuration management (
aiox config) - Quality gates (
aiox qa) - Metrics tracking (
aiox metrics) - Pro features (
aiox pro)
Global Options
These options are available across most commands:Display the installed version of AIOX
Display detailed version information including installation metadataShows:
- Package version
- Installation mode (project-development or framework-development)
- Installed and updated timestamps
- File count and customization status
- Version comparison with latest
Display help information for any command
Enable verbose output for detailed logging (command-specific)
Output results in JSON format for CI/CD integration (command-specific)
Exit Codes
The CLI uses consistent exit codes across commands:- 0: Success - command completed successfully
- 1: Validation/check failed - issues detected (run with
--fixif available) - 2: Error - command could not complete due to an error
CLI Architecture
Standalone Entry Point
The main CLI (bin/aiox.js) is standalone with no external dependencies for npx compatibility. This ensures:
- Fast execution for common commands
- Works even if
node_modulesis not installed - Minimal overhead for simple operations
Modular Commands
Advanced commands are modular and loaded from.aiox-core/cli/:
- Workers discovery
- Configuration management
- Quality gates
- Metrics tracking
- Pro license features
Common Patterns
Dry Run Mode
Many commands support--dry-run to preview changes:
Force Mode
Use--force to bypass confirmation prompts:
Quiet Mode
Minimize output with--quiet (ideal for CI/CD):
Getting Help
For detailed help on any command:Configuration Files
The CLI interacts with several configuration files:.aiox-installation-config.yaml- Installation metadata.aiox-core/version.json- Version tracking for updates.aiox-core/install-manifest.yaml- File integrity manifest.aiox-core/framework-config.yaml- Framework configuration (L1).aiox-core/project-config.yaml- Project configuration (L2).aiox-core/local-config.yaml- Local overrides (L4)
Next Steps
- init command - Create new AIOX projects
- install command - Install AIOX in existing projects
- All commands reference - Complete command reference