Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Specify database name in db import command #293

Closed
stenvdb opened this issue Mar 15, 2021 · 3 comments
Closed

Specify database name in db import command #293

stenvdb opened this issue Mar 15, 2021 · 3 comments
Assignees
Labels
enhancement Not really required but improves quality of life

Comments

@stenvdb
Copy link

stenvdb commented Mar 15, 2021

Would be handy to be able to specify the database name in the nitro db import command. That way it would be a single command without the extra prompt and is easier to integrate with some pipeline / deployment process.

@stenvdb stenvdb added the enhancement Not really required but improves quality of life label Mar 15, 2021
@jasonmccallister
Copy link
Member

jasonmccallister commented Mar 15, 2021

@stenvdb would something like nitro db import --name mydb mybackup.sql and having it skip the prompt work?

@jasonmccallister jasonmccallister self-assigned this Mar 15, 2021
@stenvdb
Copy link
Author

stenvdb commented Mar 15, 2021

Yes exactly! I have a bash script that fetches a remote db and imports it, this would help.

@jasonmccallister
Copy link
Member

We should probably add more flags for command like the original v1 had. I will look into this and get it into a future release!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Not really required but improves quality of life
Projects
None yet
Development

No branches or pull requests

2 participants