In Craft 3, I setup a base build for my team which had a bash script. At one point in the script I was able to enable a Craft Pro trial license like so:
echo 'Craft::$app->setEdition(Craft::Pro)' | php craft shell/index
However, this doesn't work in a version I am doing for Craft 4, and I can't find any changelog or notes about this being removed in Craft 4.
Anyone know if this is intended to happen now? (As in, Craft 4 is supposed to prevent the interactive shell from making changes to a site)
If it is supposed to happen, what could be another solution to get this working?