Crafted with otttter, the framework developers fall in love with.
cd otttter
otttter devThat's it. Your app is running, and it reloads live as you edit.
| Command | What it does |
|---|---|
otttter dev |
Starts the development server with live reload |
otttter generate page about |
Adds a page, API route, layout or middleware (page, api, layout, middleware) |
otttter routes |
Lists every URL, what answers it, its middleware and its file |
otttter check |
Finds problems in the app without starting a server |
otttter lint |
Shows warnings about your code |
otttter fmt |
Formats the Rust files in src/ (--check only reports) |
otttter test |
Runs the tests in your app's files |
otttter release |
Creates a production build: fully optimized, heavily compressed and protected against reverse engineering |
otttter release --target linux |
Builds the same binary for a Linux server from any computer (linux or linux-arm64) |
otttter start |
Runs your latest release build |
otttter clean |
Removes build/ and target/ (--cache also removes old downloads) |
otttter info |
Shows versions and tools, for bug reports |
otttter upgrade |
Updates otttter to the latest release |
Note
Paths with brackets, like otttter generate api 'api/users/[id]', need quotes in zsh and bash.
Important
otttter apps are run with the otttter commands only. cargo run and other Cargo commands do not work in an otttter project.
Follow us for updates, tips & sneak peeks: