> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ellomas.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI Reference

> Complete reference for all Graft CLI commands.

# CLI Reference

Graft provides 8 commands for managing database snapshots:

| Command                                     | Description                                      |
| ------------------------------------------- | ------------------------------------------------ |
| [`init`](/graft/cli-reference/init)         | Initialize Graft on a target database container  |
| [`commit`](/graft/cli-reference/commit)     | Snapshot the current branch state                |
| [`checkout`](/graft/cli-reference/checkout) | Create or switch to a data branch                |
| [`list`](/graft/cli-reference/list)         | View all branches with size and integrity status |
| [`verify`](/graft/cli-reference/verify)     | Check Merkle integrity of a branch               |
| [`rollback`](/graft/cli-reference/rollback) | Revert to a previous commit                      |
| [`reset`](/graft/cli-reference/reset)       | Reset current branch to main's state             |
| [`delete`](/graft/cli-reference/delete)     | Remove a branch and its commits                  |

## Global Flags

| Flag        | Description                  |
| ----------- | ---------------------------- |
| `--help`    | Display help for any command |
| `--version` | Print version information    |
