-
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
[CT-2873] [Feature] dbt init
should create project in current dir (.
) instead of creating a new dir
#8216
Comments
dbt init
should create project in current dir (.
) instead of creating a new dirdbt init
should create project in current dir (.
) instead of creating a new dir
Agreed -- I always expected But since this is such long-standing behavior, I think we'd need to use one of the alternatives you mentioned instead:
Maybe a global config option named
Would you mind opening an issue (or a PR) in docs.getdbt.com? |
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. |
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. |
@dataders @dbeatty10 I agree; I think we should modify this behavior. This issue has come up several times over the years:
Unfortunately, it doesn't really make sense to set as a flag / global config (which are moving to So I think we just need to change it for good, and document that achieving the previous behavior will require running: $ mkdir <projectname>
$ cd <projectname>
$ dbt init |
Is this your first time submitting a feature request?
Describe the feature
TL;DR: I want
dbt init
to behave likegit init
and by default work within the current directory rather than make a new directory.from the
git init
(docs page):Describe alternatives you've considered
dbt init
cd my_new_dbt_proj_dir
git init
Who will this benefit?
those who need to quickly make standalone project examples and sync them to GitHub
Are you interested in contributing this feature?
yes
Anything else?
I noticed that the
dbt init
docs are missing information that's provided in the CLI viadbt init -h
The text was updated successfully, but these errors were encountered: