Is it possible to add new channels or edit existing ones from a cron job? Or from the command line on the server?
Assuming, here, the cron job executes a hidden template (with the proper permissions to avoid from being executed in public). The EE template has some PHP code that does the job. Not ideal but could work. Better approach, running it from the command line.
The reason I ask this is that using the channel form requires the token submission for security and for that reason it actually requires a POST submit, which would not work for example running a curl command.
There probably is a way with add-ons, but I don’t want to have to code a new add-on for every single job, which seems overkill and way too much work. I’m just curious how hard, messy or complicated this is.
If there is a simple PHP method or call to do this? I need to run some maintance jobs on a channel, and I’m curious if this can be automated and run programmatically without user interaction.
I had the impression the CLI is for this, but I suspect that is a different type of use.