Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to generate the dbt documentation site.
dbt
dbt [1] generate Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dbt run' instead of 'dbt docs generate'.
Using 'dbt test' which runs tests, not docs.
✗ Incorrect
The command 'dbt docs generate' is used to generate the documentation site.
2fill in blank
mediumComplete the code to serve the generated dbt documentation site locally.
dbt
dbt docs [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dbt docs generate' which only generates files.
Using 'dbt run' which runs models, not docs.
✗ Incorrect
The command 'dbt docs serve' starts a local server to view the docs.
3fill in blank
hardFix the error in the command to generate documentation site.
dbt
dbt docs [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of 'docs' and 'generate'.
Using 'dbt run docs' which is invalid.
✗ Incorrect
The correct command is 'dbt docs generate'. 'dbt generate docs' is incorrect syntax.
4fill in blank
hardFill both blanks to generate and serve the dbt documentation site.
dbt
dbt [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dbt build serve' which is invalid.
Using 'dbt run docs' which does not serve docs.
✗ Incorrect
The command 'dbt docs serve' generates and serves the documentation site.
5fill in blank
hardFill all three blanks to generate docs, serve them, and open in browser automatically.
dbt
dbt [1] [2] --[3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting '--open' flag.
Using '--open' without 'serve'.
✗ Incorrect
The command 'dbt docs serve --open' generates docs, serves them, and opens the browser.