How can we set to run task with specific --env parameters, or v9 doesn’t have a capability?
In v8, we have multi server environment that we separate admin & editor users and public users. (e.g., we have two environment set as prod-admin and prod-app
Then, when we run the automated job, we run from admin CMS server with --env parameter. So that it won’t eat too much user’s end server resources.
Environment variables get pulled into the runtime when you run a command from the CLI. You can provide environment variables either by exporting them before running the CLI command or by specifying them inline with the command.
For us, when we have a webroot that powers more than one site and we want to target the proper site environment, we just specify it inline: