oxidite-cli
Command-line tooling for Oxidite. The package name is oxidite-cli, and the installed binary is oxidite.
Installation
# Install from crates.io
# Install this generated CLI build explicitly
# Install from the local checkout
Verify the binary:
Project Creation
Generated projects include:
my-app/
├── Cargo.toml
├── README.md
├── oxidite.toml
├── migrations/
├── seeds/
├── src/
│ ├── main.rs
│ ├── controllers/
│ ├── events/
│ ├── jobs/
│ ├── middleware/
│ ├── models/
│ ├── policies/
│ ├── routes/
│ ├── services/
│ └── validators/
└── tests/
Supported project kinds:
apifullstackwebas an alias forfullstackmicroserviceminimalas an alias forapiserverless
Generators
Use generate for new workflows. make remains as a hidden compatibility alias.
Supported model field types:
stringtextintegerfloatdecimalbooleanuuidjsontimestamp
Migrations
Create a migration:
Migration files are SQL files with -- migrate:up and -- migrate:down sections:
-- migrate:up
(
id INTEGER PRIMARY KEY,
email TEXT NOT NULL
);
-- migrate:down
users;
Run or inspect migrations:
Seeders
Queue Commands
Canonical commands:
Compatibility aliases:
Development Workflow
oxidite dev forwards the selected host, port, and environment through:
SERVER_HOSTSERVER_PORTOXIDITE_ENV
Build and run the current project:
Diagnostics
The generated project configuration file is oxidite.toml.
License
MIT