# asc docs

> asc docs lists and prints the guides built into asc and writes the ASC.md command reference into a repository.

Source: https://air.build/docs/cli/asc-docs/

`asc docs` reads the guides built into the [asc](https://air.build/docs/cli/asc/) command line. They ship inside `asc`, so they match the installed version, and reading them needs no Apple team. `asc docs list` takes `--output` and `--pretty` (see [asc](https://air.build/docs/cli/asc/#output)); `show` prints the guide text and `init` always prints a JSON receipt.

```sh
asc docs list
asc docs show GUIDE
asc docs init [--path PATH] [--force] [--link=false]
```

| Subcommand | What it does |
| --- | --- |
| [list](https://air.build/docs/cli/asc-docs/#list) | Lists the built-in guides. |
| [show](https://air.build/docs/cli/asc-docs/#show) | Prints one guide. |
| [init](https://air.build/docs/cli/asc-docs/#init) | Writes `ASC.md` into the repository, like `asc init`. |

## list

Lists the built-in guides: a JSON array with each one's name (`slug`) and a one-line `description`; table and Markdown output show the same two columns. Pass a name to `asc docs show`.

No flags besides `--output` and `--pretty`.

```sh
asc docs list --output table
```

In this version of `asc` the guides are:

| Guide | What it covers |
| --- | --- |
| `api-notes` | API quirks: date formats, finance reports, sandbox testers. |
| `reference` | The command reference `asc init` writes to `ASC.md`. |
| `workflows` | Task-based workflow recipes for release, TestFlight, and Xcode flows. |
| `third-party-notices` | Licenses for native dependencies included in release binaries. |

Run `asc docs list` for the guides in the installed `asc`.

## show

Prints one guide to stdout, as Markdown. It takes the guide's name as its only argument and has no flags.

| Argument | What it is | Default |
| --- | --- | --- |
| `GUIDE` | A name from `asc docs list`. Required. | — |

Without a name it prints its help and exits `2`; more than one name fails with `docs show accepts exactly one guide name`. An unknown name fails with `unknown guide "NAME"`, lists the available names and exits `2`. `asc docs show reference` prints the same text `asc docs init` writes to `ASC.md`.

```sh
asc docs show api-notes
```

## init

`asc docs init` is the same command as [asc init](https://air.build/docs/cli/asc-init/), with the same flags, files and receipt.

```sh
asc docs init --force --link=false
```
