CLI

Files are written in src when it exists, in the working directory otherwise.

Command Does
octopux --bootstrap [--sqlite|--postgres|--mysql] [--openapi] [--graphql] Write src/main.rs and src/helpers.rs, and offer to install the dependencies, asking for the options not given without a database flag
octopux generate-model --name Project --sqlite|--postgres|--mysql [OPTIONS] Write project.rs (and its migration) — see generate-model
octopux generate-relation --parent Project --child Book --sqlite|--postgres|--mysql [OPTIONS] Write project_books.rs, the books of a project — see generate-relation
octopux add-field --model Project --sqlite|--postgres|--mysql [OPTIONS] Add fields to project.rs (and the migration adding their columns), keeping the code written in it — see add-field
octopux schema [OPTIONS] Draw the tables created by the migrations, their keys and relations — see schema

Table of contents