dbt-sugar
Contribute on GitHub
v0.1.0
v0.1.0
  • Introduction
  • Installation & Configuration
    • Installation
    • Configuration
      • Sugar Config
    • Compatibility
  • Commands
    • dbt-sugar bootstrap
      • bootstrap CLI reference (full-list)
    • dbt-sugar audit
      • audit CLI reference (full-list)
    • dbt-sugar doc
      • doc CLI reference (full-list)
    • Global CLI Flags
  • Caveats & Gotchas
    • Things to Know That We Know You Should Know
Powered by GitBook
On this page
  • What is dbt-sugar bootstrap?
  • When to run the bootstrap task?
  • What does bootstrap really do?

Was this helpful?

  1. Commands

dbt-sugar bootstrap

the easy way to kick strart all your docs!

PreviousCompatibilityNextbootstrap CLI reference (full-list)

Last updated 4 years ago

Was this helpful?

New in version 0.1.0

What is dbt-sugar bootstrap?

The bootstrap task is a way to quickly generate model descriptor files (schema.yml) for all the models of your dbt project. It can sometimes be daunting if you have not documented many models to get started. No more excuses with the bootstrap task.

Running bootstrap is as easy as this:

dbt-sugar bootstrap

When to run the bootstrap task?

  1. Anytime you want to kick start documentation for any of your models.

  2. Any time you want to make sure that the is 100% accurate. This is because the audit task does not check your database by default so it only knows about coverage for models which have no entry anywhere in schema.yml files (see ).

What does bootstrap really do?

  1. First, dbt-sugar will collect all the information about any of the already documented models and keep this safely under its arm!

  2. dbt-sugar will ping your database to get the list of columns of all of your dbt models.

  3. If a model's column is already documented, great, if a column is not documented, dbt-sugar will add an entry for it with a place holder that will reads "No description for this column." If the column is already documented in another model (see step 1), dbt-sugar will populate it with this description (this is because dbt-sugar is opinionated ).

  4. The same happens for models too. If a model is undocumented, dbt-sugar will add an entry for it (with it's columns as described in the steps above).

audit task
audit task for more info
see FAQ