brylix-cli 0.1.1

CLI tool for the Brylix framework
brylix-cli-0.1.1 is not a library.

Brylix CLI

Command-line tool for the Brylix framework. Create projects, generate code, and deploy to AWS Lambda.

Installation

cargo install brylix-cli

Commands

Create New Project

# Basic project
brylix new my-api

# With multi-tenant support
brylix new my-api --multi-tenant

# With PostgreSQL
brylix new my-api --database postgres

Generate Code

# Generate entity (SeaORM model)
brylix generate entity User

# Generate service layer
brylix generate service User

# Generate repository layer
brylix generate repository User

# Generate GraphQL resolver
brylix generate resolver User

# Generate migration
brylix generate migration create_users_table

Development

# Run locally with hot reload
brylix dev

# Run database migrations
brylix migrate

# Create new migration
brylix migrate:generate migration_name

Deployment

# Build for AWS Lambda (ARM64)
brylix build

# Deploy to AWS Lambda
brylix deploy

Generated Project Structure

my-api/
├── Cargo.toml
├── .env
├── src/
│   ├── main.rs
│   ├── graphql/
│   │   ├── mod.rs
│   │   ├── query.rs
│   │   ├── mutation.rs
│   │   └── types.rs
│   ├── service/
│   ├── repository/
│   └── model/
└── migration/
    └── src/
        └── lib.rs

Requirements

  • Rust 1.75+
  • cargo-lambda for local development and deployment

Documentation

Full documentation is available at docs.rs/brylix-cli.

License

Licensed under either of Apache License 2.0 or MIT License at your option.