| Crates.io | oxidite-cli |
| lib.rs | oxidite-cli |
| version | 2.0.2 |
| created_at | 2025-12-07 14:48:26.772311+00 |
| updated_at | 2026-01-25 03:10:03.232999+00 |
| description | CLI tool for the Oxidite v2 web framework |
| homepage | |
| repository | https://github.com/meshackbahati/rust-oxidite |
| max_upload_size | |
| id | 1971716 |
| size | 194,009 |
Command-line interface for the Oxidite web framework. Provides tools for project scaffolding, code generation, migrations, and development server management.
oxidite-cli is the official command-line tool for the Oxidite web framework. It streamlines development workflows by providing commands for project creation, code generation, database migrations, and development server management.
Install the CLI tool globally:
# Install from crates.io (when published)
cargo install oxidite-cli
# Or install from local source
cargo install --path .
Generate a new Oxidite project:
# Interactive project creation
oxidite new my-app
# The interactive wizard will guide you through:
# - Project type selection (Fullstack, API, Microservice, Serverless)
# - Database configuration
# - Feature selection
# - Directory structure setup
Start the development server with hot reloading:
# Navigate to your project directory
cd my-app
# Start the development server
oxidite dev
# The server will watch for file changes and automatically restart
# Available at http://127.0.0.1:8080 by default
Generate common components:
# Generate a model
oxidite make model User
# Generate a controller
oxidite make controller Users
# Generate middleware
oxidite make middleware Auth
# Generate a migration
oxidite make migration create_users_table
Manage your database schema:
# Create a new migration
oxidite migrate create add_email_to_users
# Run pending migrations
oxidite migrate run
# Rollback the last migration
oxidite migrate rollback
# View migration status
oxidite migrate status
Diagnose common issues:
# Run system diagnostics
oxidite doctor
# This checks:
# - Rust installation
# - Database connectivity
# - Configuration files
# - Dependency versions
# - Common setup issues
# Show help
oxidite --help
oxidite new --help
oxidite dev --help
# Project commands
oxidite new <project-name> # Create a new project
oxidite build # Build the project
oxidite serve # Start production server
# Development commands
oxidite dev # Start development server
oxidite watch # Watch files and run tests/builds
# Code generation
oxidite make model <name> # Generate a model
oxidite make controller <name> # Generate a controller
oxidite make middleware <name> # Generate middleware
oxidite make migration <name> # Generate a migration
# Database commands
oxidite migrate create <name> # Create migration
oxidite migrate run # Run migrations
oxidite migrate rollback # Rollback migrations
oxidite migrate status # Show migration status
# Utility commands
oxidite doctor # Run health checks
oxidite clean # Clean build artifacts
oxidite version # Show version information
The CLI supports different project types:
The CLI reads configuration from config.toml in your project root:
[app]
name = "my-app"
port = 3000
environment = "development"
[database]
url = "sqlite::memory:"
migrations_dir = "./migrations"
[server]
host = "127.0.0.1"
workers = 4
timeout = 30
The CLI respects common environment variables:
# Override the port
OXIDITE_PORT=8080 oxidite dev
# Use a different database
DATABASE_URL=postgresql://user:pass@localhost/db oxidite dev
# Set environment
OXIDITE_ENV=production oxidite serve
The CLI is designed to work seamlessly with Oxidite projects:
Common issues and solutions:
# If the CLI isn't found after installation
export PATH="$HOME/.cargo/bin:$PATH"
# If you get permission errors
cargo install --path . --force
# To update the CLI
cargo install oxidite-cli --force
MIT