dbt docs has two supported subcommands:
The command is responsible for generating your project's documentation website by
- copying the website
index.htmlfile into the
- compiling the project to
- producing the
target/catalog.jsonfile, which contains metadata about the tables and views produced by the models in your project.
dbt docs generate
--no-compile argument to skip re-compilation. When this flag is provided,
dbt docs generate will only execute steps (1) and (3), as described above.
dbt docs generate --no-compile
This command starts a webserver on port 8000 to serve your documentation locally. The webserver is rooted in your
dbt docs serve [--profiles-dir PROFILES_DIR] [--profile PROFILE] [--target TARGET] [--port PORT]
You may specify a different port using the
dbt docs serve --port 8001