Skip to content
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

Re-add support for dbt init <project_name> #4156

Closed
jtcohen6 opened this issue Oct 28, 2021 · 4 comments · Fixed by #4249
Closed

Re-add support for dbt init <project_name> #4156

jtcohen6 opened this issue Oct 28, 2021 · 4 comments · Fixed by #4249
Labels
enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors! init Issues related to initializing the dbt starter project

Comments

@jtcohen6
Copy link
Contributor

jtcohen6 commented Oct 28, 2021

Folks are used to being able to pass project name as a first positional argument to the dbt init subcommand. The new approach (new for v1!) is much more fun + interactive, but for muscle memory's sake, let's see if we can't find a way to keep supporting dbt init my_new_project, too.

If passed, I think this argument should be used as the implicit answer for "What is the desired project name?" We should set project_name accordingly here, and skip the prompt.

Related ask that we should foresee:

  • Ability to skip profile setup entirely, and just create scaffolding for a new project (--skip-profile-setup?). This could be used by tools which manage connection setup themselves, such as dbt Cloud
  • Ability to create project scaffolding in the current working directory, rather than always creating a new subfolder ([Feature] dbt init with target directory #4141)
@jtcohen6 jtcohen6 added enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors! init Issues related to initializing the dbt starter project labels Oct 28, 2021
@kadero
Copy link
Contributor

kadero commented Oct 29, 2021

Hello @jtcohen6 👋,

Indeed, it could be great to keep supporting dbt init my_new_project for the v1 🙂.

Ability to skip profile setup entirely, and just create scaffolding for a new project (--skip-profile-setup?). This could be used by tools which manage connection setup themselves, such as dbt Cloud

I agree too, this feature would be use full 🙂.

Happy to can work on it if it's ok for you? 🙂
Thanks 🙏

@jtcohen6
Copy link
Contributor Author

By all means!

@b-per
Copy link
Contributor

b-per commented Nov 9, 2021

Hi @kadero, have you worked on this one already? If not, I am happy to raise a PR for it.

@kadero
Copy link
Contributor

kadero commented Nov 9, 2021

Hi @kadero, have you worked on this one already? If not, I am happy to raise a PR for it.

Hello @b-per,
Thanks for your message 🙂 .

Yes I began to work on it. I didn't find the time to finish the job (fix integration tests) and open a PR. I'm going to open a PR ASAP.

Thanks 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors! init Issues related to initializing the dbt starter project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants