Skip to content

Partial support

Scripts ​

A Corvis project has no CLI-specific scripts file: the project is a Cargo crate and the build and run commands are Cargo's. corvis start and corvis build are shortcuts over them.

TaskWith the CLIWith Cargo
Run in developmentcorvis startcargo run
Run and restart on savecorvis start --watchcargo watch -x run
Buildcorvis buildcargo build
Build for productioncorvis build --releasecargo build --release
Run the testscargo test

corvis start --watch requires cargo-watch (cargo install cargo-watch). See Usage.

Custom commands ​

If you want short names for project tasks, use Cargo aliases in .cargo/config.toml:

toml
# .cargo/config.toml
[alias]
dev = "watch -x run"
prod = "run --release"
bash
cargo dev
cargo prod

For longer tasks (migrations, model generation), the corvis-orm binary has its own subcommands; see corvis-orm.

Released under the MIT License.