| Crates.io | avx-cli |
| lib.rs | avx-cli |
| version | 0.1.0 |
| created_at | 2025-11-21 03:20:07.542424+00 |
| updated_at | 2025-11-21 03:20:07.542424+00 |
| description | Command-line tools for Avila Experience Fabric - Project management, deployment, monitoring |
| homepage | https://arxis.avilaops.com |
| repository | https://github.com/avilaops/arxis |
| max_upload_size | |
| id | 1943045 |
| size | 33,638 |
Command-line tools for Avila Experience Fabric
Command-line interface for managing, deploying, and monitoring AVX (Avila Experience) platform services. Provides developer-friendly tools for configuration, testing, and operations.
cargo install --git https://github.com/avilaops/avx-mcp avx-cli
Download from GitHub Releases:
avx-mcp-windows-x64.zipavx-mcp-linux-x64.tar.gzavx-mcp-macos-x64.tar.gzExtract and add to your PATH.
git clone https://github.com/avilaops/avx-mcp
cd avx-mcp/avx-cli
cargo install --path .
Note: Package not yet published to crates.io. Use the methods above.
# Show version and help
avx --version
avx --help
# Initialize new AVX project
avx init my-project
# Check configuration
avx config validate
# Start local development
avx dev
# Deploy to production
avx deploy production
# Initialize new project
avx init <name> [--template <template>]
# Available templates:
# - gateway: API gateway setup
# - service: Microservice template
# - quantum-render: Quantum renderer project
# - full-stack: Complete AVX application
# Generate new component
avx generate service user-service
avx generate route /api/users
# Validate configuration files
avx config validate
# Show current configuration
avx config show [--env production]
# Set configuration value
avx config set server.port 8080
# List all config keys
avx config list
# Start development server with hot reload
avx dev
# Run with specific environment
avx dev --env staging
# Run tests
avx test [--watch]
# Lint code
avx lint
# Format code
avx fmt
# Deploy to environment
avx deploy <env>
# Deploy specific service
avx deploy production --service api-gateway
# Rollback deployment
avx rollback production
# Show deployment status
avx status [--env production]
# Show logs
avx logs [--service gateway] [--follow]
# Show metrics
avx metrics [--service gateway]
# Health check
avx health [--all]
# Performance analysis
avx perf --trace request-id
# Add route to gateway
avx gateway add-route /api/users http://user-service:8000
# List routes
avx gateway routes
# Test route
avx gateway test /api/users
# Reload configuration
avx gateway reload
# View real-time traces
avx trace --live
# Export traces
avx trace export --format json --output traces.json
# Analyze anomalies in time series
avx telemetry anomalies --metric response_time
# Generate performance report
avx telemetry report --from "1 hour ago"
avx-cli looks for configuration in:
./avx.toml (project-specific)~/.avx/config.toml (user-specific)/etc/avx/config.toml (system-wide)Example avx.toml:
[project]
name = "my-avx-app"
version = "0.1.0"
[dev]
port = 8080
hot_reload = true
[gateway]
routes = [
{ path = "/api/users", upstream = "http://localhost:8001" },
{ path = "/api/products", upstream = "http://localhost:8002" },
]
[telemetry]
enabled = true
level = "debug"
output = "console"
[deployment]
default_env = "staging"
[deployment.production]
host = "prod.avila.cloud"
region = "us-east-1"
Override configuration with environment variables:
export AVX_ENV=production
export AVX_PORT=3000
export AVX_LOG_LEVEL=info
export AVX_CONFIG_PATH=/custom/path/avx.toml
avx init my-app --template full-stack
cd my-app
avx dev
avx deploy production \
--config production.toml \
--service api-gateway \
--tag v1.2.3
avx logs --service gateway --follow --level error
# Find slow requests
avx perf slow-requests --threshold 1000ms --last 1h
# Show latency percentiles
avx perf latency --service gateway
# Trace specific request
avx trace ABC123-REQUEST-ID
The CLI integrates with all AVX components:
Extend functionality with plugins:
# Install plugin
avx plugin install avx-deploy-k8s
# List plugins
avx plugin list
# Use plugin
avx k8s deploy --namespace production
Generate shell completion scripts:
# Bash
avx completion bash > /etc/bash_completion.d/avx
# Zsh
avx completion zsh > /usr/local/share/zsh/site-functions/_avx
# Fish
avx completion fish > ~/.config/fish/completions/avx.fish
# PowerShell
avx completion powershell > $PROFILE
Build from source:
git clone https://github.com/avilaops/arxis
cd arxis/avx-cli
cargo build --release
./target/release/avx --version
MIT OR Apache-2.0
See LICENSE-MIT and LICENSE-APACHE for details.