0
0
dbtdata~5 mins

dbt docs serve - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the command dbt docs serve do?
It starts a local web server that shows the documentation website for your dbt project, letting you explore models, sources, and tests in a friendly way.
Click to reveal answer
beginner
Before running dbt docs serve, what command should you run to generate the docs?
You should run dbt docs generate to create the documentation files that dbt docs serve will display.
Click to reveal answer
beginner
How can dbt docs serve help you understand your data models better?
It provides a visual and interactive way to see how models relate, their columns, tests, and lineage, making it easier to understand your data flow.
Click to reveal answer
intermediate
Which port does dbt docs serve use by default to show the documentation site?
By default, it uses port 8080, so you can open your browser at http://localhost:8080 to see the docs.
Click to reveal answer
beginner
Can you use dbt docs serve without internet connection?
Yes, because it serves the documentation locally on your machine, no internet is needed once docs are generated.
Click to reveal answer
What is the first step before running dbt docs serve?
ARun <code>dbt docs generate</code>
BRun <code>dbt run</code>
CRun <code>dbt test</code>
DRun <code>dbt seed</code>
Which URL do you open to view docs after running dbt docs serve?
Ahttp://localhost:8080
Bhttp://localhost:3000
Chttp://127.0.0.1:5000
Dhttp://0.0.0.0:8000
What kind of information can you explore in the docs served by dbt docs serve?
AOnly SQL code
BServer logs
CDatabase user permissions
DModels, sources, tests, and lineage
Is an internet connection required to use dbt docs serve after docs are generated?
AOnly if you want to update docs
BYes, it fetches docs from the cloud
CNo, it serves docs locally
DOnly for the first time
Which command would you use to stop the docs server started by dbt docs serve?
AClose the browser tab
BPress Ctrl+C in the terminal
CRun <code>dbt docs stop</code>
DRun <code>dbt docs kill</code>
Explain the purpose and workflow of using dbt docs serve in a dbt project.
Think about how you prepare and then view your project documentation.
You got /4 concepts.
    Describe how dbt docs serve helps in understanding data models and their relationships.
    Consider what you see when you open the docs site.
    You got /4 concepts.