-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-690] Ability to add package dependencies via the CLI #5302
Comments
Are you suggesting that this cli command would actually add this package specification to packages.yml? |
@gshank - Yes. If you are familiar with Surgically editing the yaml file by hand just makes it harder to automate - especially in a cross-platform, cross-OS manner. A CLI version of 'deps add' would give a single cross-platform way of adding packages to a dbt project. |
@aaronsteers This is a neat idea! It sounds like something you'd be interested in working on / contributing? @gshank Do you have qualms or hesitations about adding support for this? It would be tricky for us to support this outside the CLI / local file system context, but I think that's probably okay, given that it's really intended as a handy workflow for CLI users (= human beings). I'm a bit more skeptical of the " |
going to tag this |
Update: It's NOT in Maybe that should change our point of view for native support...? I do appreciate that editing |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
Is this your first time opening an issue?
Describe the Feature
dbt deps add ...
Would accept args matching the specifications that land in yaml:
https://docs.getdbt.com/docs/building-a-dbt-project/package-management/#how-do-i-specify-a-package
For instance:
--package=PACKAGE
to setpackage: 'PACKAGE'
--version=VERS
to setversion: 'VERS
Afterwards run the installation as would be performed by
dbt deps
.Describe alternatives you've considered
Today the alternative seems to be to manually edit the yaml or create some custom scripts which perform that yaml edit.
Who will this benefit?
Users of packages on the hub will have a more streamlined installation method.
Community members can share a one-line snippet on how to add any community package to a project repo.
Are you interested in contributing this feature?
Yes, definitely
Anything else?
No response
The text was updated successfully, but these errors were encountered: