| Crates.io | reinhardt-admin-cli |
| lib.rs | reinhardt-admin-cli |
| version | 0.1.0-alpha.1 |
| created_at | 2026-01-23 11:21:55.776676+00 |
| updated_at | 2026-01-23 11:21:55.776676+00 |
| description | Command-line tool for Reinhardt project management |
| homepage | |
| repository | https://github.com/kent8192/reinhardt-web |
| max_upload_size | |
| id | 2064192 |
| size | 271,963 |
Global command-line tool for Reinhardt project management.
reinhardt-admin-cli is the Django's django-admin equivalent for Reinhardt. It provides utilities for creating new projects and applications.
Install globally using cargo:
cargo install reinhardt-admin-cli
This installs the reinhardt-admin command.
# Create a RESTful API project (default)
reinhardt-admin startproject myproject
# Create an MTV-style project
reinhardt-admin startproject myproject --template-type mtv
# Create project in a specific directory
reinhardt-admin startproject myproject /path/to/directory
# Create a RESTful app (default)
reinhardt-admin startapp myapp
# Create an MTV-style app
reinhardt-admin startapp myapp --template-type mtv
# Create app in a specific directory
reinhardt-admin startapp myapp /path/to/directory
# Display help
reinhardt-admin help
# Display version
reinhardt-admin --version
Format page! macro DSL in your source files:
# Format all Rust files in the current directory
reinhardt-admin fmt .
# Format a specific file
reinhardt-admin fmt src/main.rs
# Check formatting without modifying files
reinhardt-admin fmt --check .
# Show all files (including unchanged)
reinhardt-admin fmt -v .
You can control which page! macros should be skipped during formatting by using special comment markers:
Skip formatting for the entire file by adding // reinhardt-fmt: ignore-all at the beginning (within the first 50 lines, before any code):
// reinhardt-fmt: ignore-all
use reinhardt_pages::prelude::*;
page!(|| { div{bad_format} }) // Will not be formatted
Skip formatting for multiple macros within a range using // reinhardt-fmt: off and // reinhardt-fmt: on:
// reinhardt-fmt: off
page!(|| { div{bad1} })
page!(|| { span{bad2} })
// reinhardt-fmt: on
page!(|| { p { good } }) // This will be formatted
Skip formatting for a specific macro by adding // reinhardt-fmt: ignore on the line immediately before it:
// reinhardt-fmt: ignore
page!(|| { div{bad} })
page!(|| { span { good } }) // This will be formatted
When multiple markers are present, they are applied in this priority order:
// reinhardt-fmt: ignore// reinhardt-fmt: off/on// reinhardt-fmt: ignore-all//reinhardt-fmt:ignore also works)off markers will generate a warning but use the first off positionon) will extend to the end of the file-v: Also show unchanged files-vv: Show all file processing status (deprecated, same as -v)[1/50] format$ reinhardt-admin fmt .
[1/47] Formatted: src/main.rs
[2/47] Formatted: src/config/settings.rs
[3/47] Error src/broken.rs: Parse error
Summary: 2 formatted, 45 unchanged, 1 errors
| Django | Reinhardt |
|---|---|
django-admin startproject myproject |
reinhardt-admin startproject myproject |
django-admin startapp myapp |
reinhardt-admin startapp myapp |
reinhardt-admin-cli includes two project templates:
Apps can be created in two forms:
apps/ directoryrust-embedreinhardt-admin-cli depends on reinhardt-commands for its core functionality:
reinhardt-admin-cli (CLI binary)
↓
reinhardt-commands (Library)
↓
StartProjectCommand / StartAppCommand
Licensed under either of:
at your option.