# Legal

URL: https://docs.hanzo.ai/docs/cli/legal

> The `hanzo legal` commands.

Also for this capability: [API](https://docs.hanzo.ai/docs/openapi/legal) · **CLI** · [MCP](https://docs.hanzo.ai/docs/mcp-tools/legal) · [SDKs](https://docs.hanzo.ai/docs/sdks)

The paperwork your company needs, drafted, signed and filed.

[API reference →](https://docs.hanzo.ai/docs/openapi/legal)

```bash
hanzo legal documents list
```

Every command takes `--json` for the raw response and `--help` for its own flags. Sign in once with `hanzo auth login`; the commands below use that session, and the org they act in is the one it carries.

| Command              | What it does                                                                                     |
| -------------------- | ------------------------------------------------------------------------------------------------ |
| `hanzo legal health` | Reports that the legal subsystem is serving and how many built-in templates its catalog carries. |

### Documents

| Command                                    | What it does                                                                                                                            |
| ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| `hanzo legal documents create`             | Renders a document from a template and the caller's own merge data, seals it in the org's store, and returns it with its rendered body. |
| `hanzo legal documents get <id>`           | Returns one of the org's documents WITH its rendered body.                                                                              |
| `hanzo legal documents list`               | Returns the org's generated documents, newest first, WITHOUT their rendered content — fetch one document to read its body.              |
| `hanzo legal documents sign complete <id>` | Record that a generated document's signature request completed                                                                          |
| `hanzo legal documents sign create <id>`   | Opens an e-signature request over one document and moves it to out\_for\_signature, returning the provider's reference for the request. |

### Filings

| Command                      | What it does                                                                                                                                       |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `hanzo legal filings create` | Records a filing of one or more of the org's documents with a state or agency, and returns the tracking record.                                    |
| `hanzo legal filings get`    | Returns the org's filing records, newest first — which documents were filed where, through which provider, and what the filing's honest status is. |

### Templates

| Command                          | What it does                                                                                                                                                                         |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `hanzo legal templates get <id>` | Returns one template resolved for the caller's org — the org's own override if it has saved one, else the built-in — with its full text/template body and its declared merge fields. |
| `hanzo legal templates list`     | Returns the org's effective template catalog: every built-in template, with any the org has overridden replaced by its own latest version.                                           |
| `hanzo legal templates set <id>` | Saves the org's own version of a template — a custom NDA, a house MSA — and returns it with its new version number.                                                                  |
