<!-- @generated by usage-cli from usage spec -->

# `usage generate manpage`

- **Usage**: `usage generate manpage <FLAGS>`
- **Aliases**: `man`
- **Effect**: read-only
- **Source code**: [`cli/src/cli/generate/manpage.rs`](https://github.com/jdx/usage/blob/main/cli/src/cli/generate/manpage.rs)

Generate a manpage from a usage spec

## Flags

### `-f --file <FILE>`

A usage spec taken in as a file, use "-" to read from stdin

### `--view <VIEW>`

Render one spec-declared executable view

### `-o --out-file <OUT_FILE>`

**Effect**: modifies state

Output file path, or "-" for stdout (default)

### `-s --section <SECTION>`

Manual section number (default: 1)

Common sections: - 1: User commands - 5: File formats - 7: Miscellaneous - 8: System administration commands

**Default:** `1`
