# ruprizzle-cli
[](https://crates.io/crates/ruprizzle-cli)
[](https://docs.rs/ruprizzle-cli)
[](https://github.com/vaibhavgupta9877/ruprizzle-orm)
Command-line interface for `ruprizzle-orm`.
`ruprizzle-cli` is the entry point for working with `ruprizzle-orm` outside of Rust code. It parses the `schema.ruprizzle` file, generates typed clients, introspects existing databases, validates schemas, and runs migrations against Postgres, MySQL/MariaDB, or SQLite.
## Commands
- `ruprizzle init` — scaffold a new project with a schema, `.env`, and migrations directory.
- `ruprizzle generate` — parse the schema and emit the generated Rust client.
- `ruprizzle validate` — parse and validate the schema without writing files; useful in CI.
- `ruprizzle format` — rewrite the schema file in canonical form.
- `ruprizzle migrate` — plan, apply, inspect, and squash schema migrations.
- `ruprizzle db pull` — introspect an existing database into `schema.ruprizzle`.
- `ruprizzle db seed` — transactionally apply idempotent rows from `seeds/main.json`.
- `ruprizzle db push` — push schema changes directly without migration files.
## Installation
```bash
cargo install ruprizzle-cli
ruprizzle --help
```
## Quick start
```bash
ruprizzle init --provider sqlite
ruprizzle generate
ruprizzle migrate dev
```
## Studio
Ruprizzle Studio, a local browser UI for your data, is behind the `studio` feature:
```bash
cargo install ruprizzle-cli --features studio
ruprizzle studio # read-only; add --allow-writes to edit
```
Open the URL it prints (`http://127.0.0.1:5555/studio?token=…`). Since 1.6 every
request needs that per-run token; use `--token` or `RUPRIZZLE_STUDIO_TOKEN` to fix it,
and send it as `x-studio-token` or `Authorization: Bearer` from scripts.
See the [project homepage](https://vaibhavgupta9877.github.io/ruprizzle-orm) for the full guide.
- [Repository](https://github.com/vaibhavgupta9877/ruprizzle-orm)
- [Documentation](https://docs.rs/ruprizzle-cli)
- [Project homepage](https://vaibhavgupta9877.github.io/ruprizzle-orm)
- [Changelog](https://github.com/vaibhavgupta9877/ruprizzle-orm/blob/main/CHANGELOG.md)
## Keywords
orm, sql, database, cli, migrations