rwf-cli

Crates.iorwf-cli
lib.rsrwf-cli
version0.1.3
sourcesrc
created_at2024-10-15 20:39:14.74794
updated_at2024-10-15 21:42:21.326533
descriptionRust Web Framework CLI
homepage
repository
max_upload_size
id1410326
size50,045
Lev Kokotov (levkk)

documentation

README

Rwf CLI

Rwf comes with its own command-line interface (CLI) which helps managing projects.

Installation

Install the CLI using Cargo:

$ cargo install rwf-cli

If you have configured Cargo correctly, you should be able to use the CLI directly:

$ rwf-cli --help

If not, add ~/.cargo/bin/ to your PATH.

Commands

Rwf CLI supports the following features:

  • migrations
  • project setup

Migrations

Adding a migration

$ rwf migrate add --name "name_of_your_migration"

Running migrations

$ rwf migrate run

Reverting the latest migration

$ rwf migrate revert

Re-create database

This will revert all migrations (deleting all data) and re-create all tables and indexes:

$ rwf migrate flush
Commit count: 0

cargo fmt