# perk-cli
The `perk` command for [Perk](https://rust-kit.com), a small web framework that
renders pages in Rust and ships just enough JavaScript.
```bash
cargo install perk-cli
perk new my-app
cd my-app && perk dev
```
`perk new` writes a working app: a prerendered home page, a counter with
browser state, a page that loads data from a Rust resolver, a layout, a
component and tests. `--tailwind` turns on Tailwind.
| `perk new <path>` | Creates an app |
| `perk add page blog/[slug]` | Adds a page; also `add layout <dir>` and `add component <Name>` |
| `perk dev` | Runs the app; rebuilds, restarts and updates open pages on save |
| `perk check` | Compiles every page and reports errors, without running Cargo |
| `perk routes` | Lists routes, static or per-request, with JS and CSS bytes |
| `perk build [dir]` | Release build, then prerenders into `dist/` |
| `perk serve [addr]` | Runs a release build |
- CLI reference: <https://rust-kit.com/docs/cli/>
- Getting started: <https://rust-kit.com/docs/getting-started/>
- Source: <https://github.com/nicholas-johnson/rust-kit>
Licensed under either of MIT or Apache-2.0, at your option.