-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
dbt init should be able to create a project in the current directory #1121
Comments
this is a reasonable idea, but I don't think it's something we're going to prioritize any time soon. Closing, but we can re-open if anyone feels strongly |
this is bugging me for some time. It different from the semantics of other tools. E.g. 'git init' . It would be event great if it would ask in the first step to take the current directory or a subdirectory |
More recent issue proposing something similar: #4141 I'm not strictly opposed, if lots of folks want this |
Great to hear. I often have the workflow: create repo on github, clone repo to local, try to init dbt - damn ;) |
I think this should be supported in the CLI. The current workaround is a pain if you'd like to use dbt's root-level configuration if you don't want to use the dbt cli to bootstrap the project. For example, I use |
Upvoting this for the same use case as @schlich . I've been experimenting with switching to
|
@emilyriederer i'd still like to see first class support for this feature (particularly I think there are some details around getting the name of the profiles/paths right that need to be considered) but just as an FYI your workaround can be shortened to one line instead of two by using |
Any updates on this? I create a folder with an But I need a |
@matthias-fbi That's exactly what brought me here! +1 for this, I thought I was crazy but glad to see I'm not alone in this. |
I totally agree. I want to use: |
Adding to this chorus, I'm also using uv and I'm trying to roll dlt, dbt, and dagster into a single project, and it would be a bit easier if this was supported. |
@zheacker ditto! |
Feature
dbt_init
should be able to create a project in the current directoryFeature description
Sometimes its's helpful to create a new dbt project in the current directory, rather than in a new directory. One example is when using dbt with pipenv. Ideally this sequence of commands would install dbt from scratch in a virtual environment, and then create a dbt project in that same directory:
If dbt needs a project name, it could take it from the path or take a different argument to override the default "create a directory" behavior
> pipenv run dbt init my-dbt-project --current-directory
Who will this benefit?
People creating a new dbt project who plan on collaborating and require specific dbt versions to be installed across multiple machines.
The text was updated successfully, but these errors were encountered: