r/adonisjs • u/rohitpaulk • Sep 13 '26
How do you folks run scripts?
Long-time Rails user here, been toying with Adonis lately. I'm used to using rails runner to run scripts, is there an equivalent for Adonis?
Something like node ace run scripts/release.ts.
I saw custom commands, but those have a bunch of boilerplate associated with them (yep I can see how the added structure is useful in some cases).
5
Upvotes
2
u/amanvirk Sep 13 '26
There isn't anything inbuilt for this. But you can write a custom runner command that actually does the same
1
u/evoactivity Sep 13 '26
or add it to your package.json scripts list and then