https://prefect.io logo
Title
j

John Mizerany

10/14/2022, 1:44 PM
Hi all, I am currently trying to make a dbt block in prefect 2 but whenever I register it through the CLI I get
Successfully registered 0 blocks
and the block is not created in the Cloud UI. I have been following the instructions given in the collections documentation and the prefect-dbt github
1
a

Anna Geller

10/14/2022, 1:55 PM
Do you see DBT CLI profile in your UI? And what command do you use to register the block type? Probably you didn't specify the module
j

John Mizerany

10/14/2022, 1:57 PM
The commands I am using after installing
prefect-dbt
in my environment is
prefect block register -m prefect_dbt
Ahhhh got it. I needed to add a .cli at the end of the command!
Thank you!
a

Anna Geller

10/14/2022, 2:28 PM
Exactly 💯