Skip to content

[V6] Access database using Lucid Models inside a Ace command #4655

Answered by RomainLanz
moabsi asked this question in Help
Discussion options

You must be logged in to vote

Hey @moabsi! 👋🏻

You have to start the application inside your command.

📚 https://docs.adonisjs.com/guides/ace/creating-commands#command-metadata

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@moabsi
Comment options

Answer selected by moabsi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants