# snapdir id Print the manifest ID of a directory or a manifest piped via stdin. The ID is the content address of the snapshot: the same tree always yields the same ID. See [Content addressing](../concepts/content-addressing.md). ## Usage ```text snapdir id [OPTIONS] [PATH] ``` ### Arguments | Argument | Description | | --- | --- | | `[PATH]` | Directory to describe (omit to read a manifest from stdin). | ### Options `id` accepts the [global options](overview.md#global-options), notably `--checksum`, `--exclude`, and `--paths`. ## Examples Print the ID of a directory: ```console snapdir id ./project ``` Pipe a manifest in to compute its ID without re-walking the tree: ```console snapdir manifest ./project | snapdir id ``` ## See also - [`snapdir manifest`](snapdir-manifest.md) — produce the manifest the ID is computed from - [Content addressing](../concepts/content-addressing.md)