docs Command
The docs command generates a documentation website for your Bruin pipelines as a single, self-contained HTML file. The site lists every pipeline and asset with its description, owner, tags, schedule, columns, checks, materialization, lineage, and source code, and includes search.
The file has no external dependencies, so you can open it locally, attach it to a ticket, or host it as a static page.
Usage
bruin docs [flags] [path to a repo, pipeline, or asset]Arguments
path (optional):
- A directory: every pipeline under it is included.
- An asset file: the pipeline that contains it is included.
- If omitted, Bruin uses the root of the current Git repository, or the current directory outside a repository.
Flags
| Flag | Alias | Default | Description |
|---|---|---|---|
--output | -o | bruin-docs.html | Path to write the generated HTML file. |
--title | Bruin Docs | Title shown in the generated site. | |
--variant | For variant pipelines, only materialize the given variant. | ||
--exclude-code | false | Leave asset source code out of the generated site. Custom check queries, hook SQL, and unit test inputs are still included. | |
--open | false | Open the generated file in your default browser. |
Examples
Generate docs for the whole repository:
bruin docsGenerated documentation for 3 pipelines and 42 assets: /path/to/repo/bruin-docs.htmlGenerate docs for one pipeline with a custom title, and open them:
bruin docs pipelines/marketing --title "Marketing Pipelines" --openShare docs without the assets' SQL or Python source:
bruin docs --exclude-code -o public/data-docs.html--exclude-code only removes the asset's own SQL or Python body. The HTML file still embeds each asset's custom check queries, hook SQL, and unit test input rows, so review those before sharing the file outside your team.
Related
lineage: print an asset's upstream and downstream dependencies in the terminal.