platformsh / legacy-cli

This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli
https://docs.platform.sh/administration/cli.html
MIT License
224 stars 121 forks source link

Add --resources-init option to five more commands #1400

Closed pjcdawkins closed 4 months ago

pjcdawkins commented 5 months ago

If the api.sizing configuration flag is enabled, this adds the option to the following affected commands, in addition to the existing option on the environment:push (push) command. The option can only be used with projects that support the flexible resources API. It sets the strategy to be used for picking the size of new resources on the target environment: parent, child, default, minimum, or manual.

Affected commands:

Part of #1384

Test for Upsun with:

# Download Upsun config
curl -s https://raw.githubusercontent.com/platformsh/cli/main/internal/config/upsun-cli.yaml > /tmp/upsun-cli.yaml

# Download the build for this PR
curl -s https://pr-1400-x7xqtxy-mpaw4nkgdwaea.eu-2.platformsh.site/platform.phar > /tmp/platform-pr-1400.phar

# Create an alias
alias upsun='CLI_CONFIG_FILE=/tmp/upsun-cli.yaml php /tmp/platform-pr-1400.phar'

# Then run the above commands as "upsun ..."