CLI Overview
The keel CLI accelerates development by providing scaffolding, code generation, and project management for ss-keel-core applications.
Installation
Section titled “Installation”# Coming soongo install github.com/slice-soft/ss-keel-cli@latestCommands
Section titled “Commands”keel new
Section titled “keel new”Scaffold a new project interactively:
keel new my-apiPlanned prompts:
- Module path (e.g.
github.com/myorg/my-api) - Port and environment defaults
- Select addons to include (database, cache, auth, etc.)
- Docker / docker-compose setup
- GitHub Actions CI template
keel generate
Section titled “keel generate”Generate boilerplate for common components:
keel generate controller userskeel generate module orderskeel generate dto CreateUserDTO| Subcommand | Generates |
|---|---|
controller <name> | Controller struct with CRUD routes skeleton |
module <name> | Module with Register() and wired controller |
dto <name> | DTO struct with common validation tags |
keel dev
Section titled “keel dev”Start the development server with hot-reload:
keel dev# orkeel dev --port 8080keel build
Section titled “keel build”Build the application binary:
keel buildkeel build --output ./bin/serverProject Generator
Section titled “Project Generator”A web-based project generator is also planned, inspired by create.astro.build. Configure your stack through a UI and download a ready-to-run project.
Planned features:
- Pick your database addon (
ss-keel-gorm,ss-keel-mongo) - Pick your cache addon (
ss-keel-redis) - Pick your auth strategy (
ss-keel-jwt,ss-keel-oauth) - Docker and CI/CD templates included
- Download as a
.zipor push directly to a new GitHub repo