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

Add "db shell" command #410

Closed
josephkerkhof opened this issue Sep 15, 2021 · 2 comments
Closed

Add "db shell" command #410

josephkerkhof opened this issue Sep 15, 2021 · 2 comments
Labels
enhancement Not really required but improves quality of life

Comments

@josephkerkhof
Copy link

Description

Oftentimes while I'm developing with Craft, I want to open up a database shell for manual querying. This can be helpful for both debugging and developing new features in Craft. With Nitro, I don't see a very easy way to do this right now. It is possible to get a MySQL shell by ssh'ing into the DB container and running mysql -h localhost -u nitro. To be a little easier, might it be possible to add in a nitro db shell command to open the current site's database?

If this is desirable, I'd be happy to help develop this feature in Nitro and submit a pull request.

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

I think this is a great idea. It could work similar to nitro db ssh or nitro craft. If you have the time a PR would be 💯!

@jasonmccallister
Copy link
Member

Hi, we are closing this issue as we have decided to retire Nitro, so no additional work will occur on this project. You can read the official blog post here https://craftcms.com/blog/retiring-craft-nitro. We appreciate everyones feedback and involvement and we look forward to refocusing our efforts on Cloud!

If you're looking for a new local development environment, we recommend DDEV and have a knowledge base article to help you with the transition: https://craftcms.com/knowledge-base/migrating-from-craft-nitro-to-ddev.

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