armature-cli 0.2.3

CLI tool for Armature framework - scaffolding and development
armature-cli-0.2.3 is not a library.

armature-cli

CLI tool for the Armature framework.

Features

  • Project Generation - Create new projects
  • Code Generation - Generate controllers, models, etc.
  • Development Server - Hot reload development
  • Database Migrations - Run and manage migrations
  • Build Tools - Production builds and optimization

Installation

cargo install armature-cli

Commands

Create Project

armature new my-app
cd my-app

Generate Code

# Generate a controller
armature generate controller users

# Generate a model
armature generate model user

# Generate a migration
armature generate migration create_users

Development Server

# Start with hot reload
armature dev

# Specify port
armature dev --port 8080

Database

# Run migrations
armature db migrate

# Rollback
armature db rollback

# Reset database
armature db reset

Build

# Development build
armature build

# Production build
armature build --release

Configuration

Create armature.toml in your project root:

[project]
name = "my-app"

[server]
port = 3000
host = "127.0.0.1"

[database]
url = "postgres://localhost/mydb"

License

MIT OR Apache-2.0