# allyhub doc cover set

> Sets one of AllyHub's covers on a doc, as the editor's gallery does: its SVG written beside the doc's file (cover-<name>.svg) and named in the front matter's cover; the rest of the file keeps its bytes

Source: https://allyhub.com/docs/reference/cli/doc-cover-set · AllyHub 0.10.0
Index of all docs: https://allyhub.com/llms.txt

## Usage

```bash
allyhub doc cover set [doc] [name]
```

## Arguments

| Argument | Type | What it is |
| --- | --- | --- |
| `<doc>` | string | The doc, by its file or its id in allyhub.yaml |
| `<name>` | `dots`, `scales`, `bay`, `stacks`, `steam`, `dusk`, `lake` | The cover (allyhub doc cover list): dots, scales, bay, stacks, steam, dusk, lake |

## Global options

`--dir <value>`: the project's folder; default the one around where it is run. `--json`: print the result as JSON.

## Examples

```bash
allyhub doc cover set plan dots
allyhub doc cover set reports/q3 lake
```

## Exit codes

`0` when it succeeds; the others are listed in [Exit codes](https://allyhub.com/docs/reference/cli/exit-codes.md).

## In the work

**docs**: Writing a doc

[`doc cover list`](https://allyhub.com/docs/reference/cli/doc-cover-list.md) → `doc cover set` → [`check`](https://allyhub.com/docs/reference/cli/check.md) → [`frames`](https://allyhub.com/docs/reference/cli/frames.md) → [`inspect pages`](https://allyhub.com/docs/reference/cli/inspect-pages.md) → [`dev`](https://allyhub.com/docs/reference/cli/dev.md) → [`render`](https://allyhub.com/docs/reference/cli/render.md)
