Skip to main content
The AIOX CLI provides a comprehensive command-line interface for managing AIOX installations, running diagnostics, and working with the framework.

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
Modular CLI: 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:
flag
Display the installed version of AIOX
flag
Display detailed version information including installation metadata
Shows:
  • Package version
  • Installation mode (project-development or framework-development)
  • Installed and updated timestamps
  • File count and customization status
  • Version comparison with latest
flag
Display help information for any command
flag
Enable verbose output for detailed logging (command-specific)
flag
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 --fix if 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_modules is 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
These require a local AIOX installation.

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