| Crates.io | rocket-cli |
| lib.rs | rocket-cli |
| version | 0.0.1 |
| created_at | 2025-08-24 12:54:17.442967+00 |
| updated_at | 2025-08-24 12:54:17.442967+00 |
| description | A fast, ergonomic command-line interface (CLI) for scaffolding and running [Rocket](https://rocket.rs) web applications in Rust. Spin up production-ready APIs in seconds with idiomatic project structure and database-backed templates. |
| homepage | |
| repository | https://github.com/irfanghat/rocket-cli |
| max_upload_size | |
| id | 1808311 |
| size | 137,522 |

A fast, ergonomic command-line interface (CLI) for scaffolding and running Rocket web applications in Rust.
Spin up production-ready APIs in seconds with idiomatic project structure and database-backed templates.
rocket new — scaffold a new Rocket projectminimal (default)mongodb, postgres, mysql, mssql, sqlite (via rbatis)dotnet CLI--git)cargo install --path .
git clone https://github.com/irfanghat/rocket-cli
cd rocket-cli
cargo build --release
Grab the latest binaries from GitHub Releases:
rocket-cli-x86_64-unknown-linux-gnurocket-cli-x86_64-pc-windows-msvc.exe (via WSL/Windows soon)rocket-cli-aarch64-apple-darwin (macOS ARM soon)Install (Linux/macOS):
chmod +x rocket-cli-*
mv rocket-cli-* /usr/local/bin/rocket-cli
Verify:
rocket-cli --version
rocket-cli <command> [options]
rocket-cli new my-api
Options:
--template <name> # minimal | mongodb | postgres | mysql | mssql | sqlite
--git # initialize a Git repository
Example:
rocket-cli new my-api --template postgres --git
rocket-cli run
All templates follow a production-ready structure:
my-api/
├── Cargo.toml
├── src/
│ ├── main.rs # Application entrypoint
│ ├── routes/ # Route handlers
│ ├── db/ # Database config & connections
│ ├── repositories/ # Data access layer
│ ├── middleware/ # Middleware & guards
│ └── fairings/ # Fairings & launch hooks
minimal — base Rocket app (default)mongodb — Rocket + MongoDBpostgres — Rocket + PostgreSQL (via rbatis)mysql — Rocket + MySQL (WIP)mssql — Rocket + SQL Server (WIP)sqlite — Rocket + SQLite (WIP)Contributions and new templates are always welcome.
git clone https://github.com/irfanghat/rocket-cli
cd rocket-cli
cargo run -- --help
Licensed under the MIT License.
Built with ❤️ in Rust — for the community, by the community.