Commands API for running Craft CLI commands from external services/clients #56
jamesmacwhite
started this conversation in
Feature Requests & Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great if the Commands functionality in Craft Console had an API layer where you can trigger Craft CLI commands through an API call, rather than having to go through the Craft Console UI.
While native cron jobs now exist, the 5 max limit and lowest frequency time of 1 hour, is a bit limited. However being able to trigger CLI commands from external services i.e. using event triggers or custom cron scheduling could make this less of an issue.
The API would need authentication, possibly an API/bearer token generated from Craft Console. This could be account level or per environment API keys.
Beta Was this translation helpful? Give feedback.
All reactions