# prb document command reference

Manage documents. This page documents **19 commands** under `prb document`.

Run any command with `--help` to inspect the flags, accepted values, and examples provided by your installed version. Return to the [complete CLI command reference](/docs/developers/cli/commands) to browse another command.

| Command                                | Description                                                | Usage                                                            | Source                                                                                                                                 |
| -------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `prb document`                         | Manage documents.                                          | `prb document <command>`                                         | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/document.go)                                        |
| `prb document archive`                 | Archive a document.                                        | `prb document archive <id>`                                      | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/archive/archive.go)                                 |
| `prb document create`                  | Create a new document.                                     | `prb document create`                                            | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/create/create.go)                                   |
| `prb document delete`                  | Delete a document.                                         | `prb document delete <id>`                                       | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/delete/delete.go)                                   |
| `prb document delete-draft`            | Delete the draft version of a document.                    | `prb document delete-draft <document-id>`                        | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/delete-draft/delete_draft.go)                       |
| `prb document list`                    | List documents in an organization.                         | `prb document list`                                              | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/list/list.go)                                       |
| `prb document list-approval-decisions` | List approval decisions for a quorum.                      | `prb document list-approval-decisions <quorum-id>`               | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/list-approval-decisions/list_approval_decisions.go) |
| `prb document list-approval-quorums`   | List approval quorums for a document version.              | `prb document list-approval-quorums <document-version-id>`       | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/list-approval-quorums/list_approval_quorums.go)     |
| `prb document list-history`            | List revisions for a document.                             | `prb document list-history <document-id>`                        | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/list-history/list_history.go)                       |
| `prb document list-versions`           | List versions of a document.                               | `prb document list-versions <document-id>`                       | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/list-versions/list_versions.go)                     |
| `prb document publish`                 | Publish a document.                                        | `prb document publish <document-id>`                             | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/publish/publish.go)                                 |
| `prb document restore-history`         | Restore a draft document to a collaboration history point. | `prb document restore-history <document-id>`                     | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/restore-history/restore_history.go)                 |
| `prb document unarchive`               | Unarchive a document.                                      | `prb document unarchive <id>`                                    | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/unarchive/unarchive.go)                             |
| `prb document update`                  | Update a document.                                         | `prb document update <id>`                                       | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/update/update.go)                                   |
| `prb document view`                    | View a document.                                           | `prb document view <id>`                                         | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/view/view.go)                                       |
| `prb document view-approval-decision`  | View an approval decision.                                 | `prb document view-approval-decision <id>`                       | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/view-approval-decision/view_approval_decision.go)   |
| `prb document view-approval-quorum`    | View an approval quorum.                                   | `prb document view-approval-quorum <id>`                         | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/view-approval-quorum/view_approval_quorum.go)       |
| `prb document view-history-snapshot`   | View the content and edit highlights of a revision.        | `prb document view-history-snapshot <document-id> <revision-id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/view-history-snapshot/view_history_snapshot.go)     |
| `prb document view-version`            | View a document version.                                   | `prb document view-version <id>`                                 | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/document/view-version/view_version.go)                       |
