data-mie / dbt-cloud-cli

dbt Cloud command line interface (CLI)
Apache License 2.0
73 stars 9 forks source link

How to set up and use #69

Closed garfieldthesam closed 1 year ago

garfieldthesam commented 1 year ago

It's unclear from the README and other artifacts in the repo (or from a google search) how to actually set up and use this package. In my case I'm working in MacOS Ventura.

I have used the command python3 -m pip install dbt-cloud-cli to install the package via terminal (running zsh) as suggested in [the blog post](https://docs.getdbt.com/blog/making-dbt-cloud-api-calls-using-dbt-cloud-cli. However, I am not able to invoke dbt-cloud from the CLI as the blog post seems to suggest.

stumelius commented 1 year ago

The CLI is installed as a console_scripts entry point when you run python3 -m pip install dbt-cloud-cli. It's difficult to say why your shell doesn't find the entrypoint. Have you tried installing it in a Python virtual environment?

garfieldthesam commented 1 year ago

Just installed using a venv and am still unable to invoke from the CLI

garfieldthesam commented 1 year ago

BUT I just got it to work by doing the following after looking up common issues with console_scripts entry points:

  1. Ran python3 -m pip install dbt-cloud-cli --force
  2. Modified my .zshrc to include export PATH=~/Library/Python/3.9/bin:$PATH

Thanks! Looking forward to using this package!

stumelius commented 1 year ago

@garfieldthesam I'm glad you managed to fix it :) And thanks for sharing the solution!