Rask.Cli
0.20.0
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global Rask.Cli --version 0.20.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Rask.Cli --version 0.20.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Rask.Cli&version=0.20.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Rask.Cli --version 0.20.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Rask.Cli
The rask command-line tool — a productivity front-door for the
Rask framework. It is a thin wrapper over the .NET SDK, with SQLite
as its only dependency: scaffold a project, run it with hot reload, manage migrations, back the database
up and restore it, and deploy it to a single host over SSH — all with short, Rask-aware commands.
Install
dotnet tool install -g Rask.Cli
Use
# Scaffold a new server-rendered app with a SQLite database + a Dockerfile
rask new MyApp --data --docker
# Scaffold a browser-WASM PWA instead
rask new MyApp --template wasm --pwa
# Scaffold a routed page, a component, or a full CRUD feature
rask generate page Products
rask generate component PriceTag
rask generate feature Product Name:string Price:decimal
# Create and apply its EF Core migration
rask db add InitialCreate
rask db update
# Run it with hot reload (dotnet watch)
rask dev
# Ship it to a single host over SSH — auto-HTTPS, zero-downtime
rask deploy --host deploy@box --domain app.example.com
# Show CLI / SDK / OS environment info
rask info
Commands
| Command | What it does |
|---|---|
rask new <name> |
Create a project from a Rask template (--template server\|wasm\|wasm-hosted\|native), forwarding --auth / --pwa / --cqrs / --data / --docker (--data pre-wires a SQLite AppDbContext). Every template is generated directly — no dotnet new needed. |
rask generate <page\|component> <Name> |
Scaffold a routed page or a component into the current project (folder-based namespace, no-overwrite, --dry-run). |
rask generate <job\|email> <Name> |
Scaffold a background job (IJob + handler) or an email-body component, adding the Rask.Jobs / Rask.Mail package. Aliases: rask g j / rask g e. |
rask generate feature <Name> <field:type> … |
Scaffold a full CQRS + EF Core CRUD vertical slice — encapsulated entity (Create/Update, Guid id), DbContext, commands/queries + handlers, and pages that dispatch via IDispatcher. Aliases: rask g f. |
rask db <add\|remove\|list\|update\|drop> |
Manage EF Core migrations — a friendly dotnet ef wrapper that finds the project and installs dotnet-ef on demand. |
rask deploy |
Build and run the app on a single host over SSH (docker -H ssh://…). Sets a bare box up first (Docker, a non-root deploy login, firewall, SSH hardening) after asking. --domain fronts it with auto-HTTPS Caddy; deploys are zero-downtime and multiple apps share one box. --github-actions writes a workflow that deploys on push. |
rask dev |
Run the app with C# Hot Reload (dotnet watch run). Finds the project itself, restarts on edits hot reload can't apply, --open for a browser. --once for a plain run. Args after -- reach the app. |
rask info |
Report the CLI version, .NET SDK version, and OS. |
rask completion <bash\|zsh\|fish> |
Print a shell completion script, generated from the live command + option set. |
Run rask <command> --help for a full reference — arguments, a described options table, and examples
— or rask --version for the tool version. Output is colorized on a terminal and plain when piped or
under NO_COLOR.
Notes
- No external dependencies — pure BCL, no NuGet packages of its own. It drives tools you already have: the
dotnetSDK, and forrask deploythe Docker CLI andssh(host setup installs Docker on the remote box from get.docker.com, never on yours). - The CLI is the front door to Rask, the .NET One Person Framework — the whole lifecycle from
newtodeploy.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.20.1-alpha.0.2 | 0 | 8/6/2026 |
| 0.20.0 | 0 | 8/6/2026 |
| 0.19.1-alpha.0.75 | 0 | 8/6/2026 |
| 0.19.1-alpha.0.74 | 0 | 8/6/2026 |
| 0.19.1-alpha.0.73 | 0 | 8/6/2026 |
| 0.19.1-alpha.0.69 | 19 | 8/6/2026 |
| 0.19.1-alpha.0.68 | 22 | 8/6/2026 |
| 0.19.1-alpha.0.67 | 22 | 8/6/2026 |
| 0.19.1-alpha.0.66 | 22 | 8/6/2026 |
| 0.19.1-alpha.0.64 | 41 | 8/6/2026 |
| 0.19.1-alpha.0.62 | 37 | 8/5/2026 |
| 0.19.1-alpha.0.57 | 32 | 8/5/2026 |
| 0.19.1-alpha.0.51 | 45 | 8/5/2026 |
| 0.19.1-alpha.0.43 | 34 | 8/5/2026 |
| 0.19.1-alpha.0.42 | 29 | 8/5/2026 |
| 0.19.1-alpha.0.40 | 27 | 8/5/2026 |
| 0.19.1-alpha.0.38 | 33 | 8/5/2026 |
| 0.19.1-alpha.0.32 | 32 | 8/5/2026 |
| 0.19.1-alpha.0.31 | 39 | 8/4/2026 |
| 0.19.1-alpha.0.30 | 28 | 8/4/2026 |
Loading failed