Releases: platformsh/legacy-cli
v4.15.0
Changes since v4.14.2:
Features relating to the sizing API (Upsun):
- Support "resources" in the environment:sync (sync) command.
- Add --resources-init option to five more commands:
backup:restore
environment:activate
environment:branch
(branch
)environment:merge
(merge
)environment:synchronize
(sync
)
- At "default" and "minimum" as keywords for the resources:set command (use
the newly exposed defaults in the API).
Other changes:
- Make
push --activate
ensure an environment is active, even when no changes
were pushed. - Fix "Failed to extract zip" on Windows (by updating credential helpers).
- Print PHP built-in warnings by default (without needing -v).
- Avoid printing "Determined CA bundle path" more than once.
- Bump giggsey/libphonenumber-for-php from 8.13.29 to 8.13.30.
SHA-256 checksum for platform.phar
:
1754d4441cafb2bde07bb49890b36f416708ccf7684a9801b72883028f72b1be
v4.14.2
Changes since v4.14.1:
- Skip rerunning SSH cert check when SSHing from the CLI.
- Highlight green regions in the project:create (create) command.
- Support IPV6 ip address validation (#1405) (thanks @hanoii).
- Set SSH log level to DEBUG3 when the CLI is in debug mode.
- Fix metrics for multi-instance grid hosting.
- Use the new backups API for restoring.
SHA-256 checksum for platform.phar
:
794f94d1ad3415d2dca0f2bf001eaa1c59d8233e3eecf1f98ddee5aa6af1d209
v4.14.1
Changes since v4.14.0:
- Reduce errors from SSH connections simultaneous with certificate refreshes:
- Do not regenerate the SSH key pair every time.
- Save the new key pair immediately after the new certificate.
- Add a config parameter
ssh.cert_key_ttl
, and corresponding environment
variablePLATFORMSH_CLI_SSH_CERT_KEY_TTL
, defining the lifetime in
seconds of a key pair. Set to 0 for the key pair never to expire or -1 for
it to be regenerated every time the certificate is refreshed. So the
previous behavior can be restored with:
export PLATFORMSH_CLI_SSH_CERT_KEY_TTL=-1
- Enable git push options by default.
Restore the previous behavior with:
export PLATFORMSH_CLI_API_GIT_PUSH_OPTIONS=0
- Include more environments in filtered interactive choices: "dirty" (building)
environments, and those with SSH URLs, as well as active environments. - Improve the error message if filtering returns no environments.
- Fix type conflict in
resources
commands between separate--app
options. - Bump giggsey/libphonenumber-for-php from 8.13.28 to 8.13.29 (#1395)
- Clarify missing extensions error for
tunnel:open
on Windows. - Replace
/me
call with/users/me
on login. - Print a debug message when refreshing the access token.
- Remove use of legacy access API in
backup:create
command. - Fix exit code when failing to load the organization for a team.
SHA-256 checksum for platform.phar
:
fb87dbb178035bb8b12fb8889c9db83d5a7ff0c8ceab5a690eff9fe19e2c5f38
v4.14.0
Changes since v4.13.1:
New features:
- Add team management commands (disabled by default until the feature is
available) - Improve setting organization user permissions
Other changes:
- Bump giggsey/libphonenumber-for-php from 8.13.27 to 8.13.28
- Display command name for listing projects without pagination
- Update SSH host keys file
- Improve help after errors by using Symfony exception more consistently
SHA-256 checksum for platform.phar
:
451e3ba31b40d3409a0378db96a3e9603ed0e33e7fdc0590c2a2d670f99b6de2
v4.13.1
Changes since v4.13.0:
- Fix a bug introduced in v4.12.0 which caused projects to be fetched via an
old hostname, resulting in errors for projects that had been migrated
between regions.
SHA-256 checksum for platform.phar
:
ffea2b07660002cb2be944b75eaa0a8356e05466dcc4d618f2b492a7edbcf36e
v4.13.0
Changes since v4.12.1:
New features:
- Add pagination to organization users commands (to support organizations with
more than 50 members). - Add
--no-checkout
option; remove checkout warning in thebranch
command. - Make SSH options configurable, using the
ssh
.options
YAML config key or
the{PREFIX}_SSH_OPTIONS
environment variable. TheRequestTTY force
option will no longer be sent by default in thessh
command. The
--identity-file
(-i
) option forssh
and related commands will continue
to work, but it is now hidden and deprecated. - Add timing columns for activity lists. For example,
--columns +time_execute
will display execution time in seconds alongside activities.
Other changes:
- SSH bugfixes:
- Allow SSH to continue if writing configuration fails.
- Omit
CertificateFile
if not supported by the OpenSSH version. - Do not rewrite config when running
ssh-cert:load --refresh-only
. - Fix the "Expires at" color in the
ssh-cert:load
command. - Avoid unnecessarily loading SSH keys.
- Avoid passing
-t
tossh
when usingsql
with the--raw
flag.
- Un-beta
metrics
and runtimeops
commands. - Deprecate
db:size
andmount:size
commands. - Make
-c0
available consistently for showing all pages, in the commands
which display paginated lists. - Warn during login when no refresh token is obtained.
- Remove unnecessary
api_domain_suffix
config. - Skip interactive app/worker choice when there is only one app, and print
the selected app/worker. - Avoid duplicate "Selected environment" verbose message when there is only one.
- Remove unnecessary sort in backups list.
- Update domain command help to clarify certificate files are for "custom" use
(they are not required for SSL support). - Ignore a 404 from the current deployment in the
drush-aliases
command.
SHA-256 checksum for platform.phar
:
af5e4a76b5e2ec89fbe8165ee36e18ec8693c35a4695df58fd91c40c3595d1f0
v4.12.1
Changes since v4.12.0:
- Bump giggsey/libphonenumber-for-php from 8.13.26 to 8.13.27
- Update client: fix missing required parameter in ResourceWithReferences
SHA-256 checksum for platform.phar
:
22cbe0a0be3a3f91e646cbeb6a85fb5e8782b65814ffd6d1ab22bde9a6a87fb7
v4.12.0
Changes since v4.11.5:
New features:
- Automatically install SSH host keys for public regions.
If necessary you can disable this behavior with the environment (e.g.
export PLATFORMSH_CLI_SSH_HOST_KEYS_FILE=''
). - Only use the SSH certificate if available.
Adds anssh.cert_only
config option which, if enabled, means only the
certificate will be included in config, if a certificate exists, and not the
user's "default" public key files (~/.ssh/id_rsa etc.). This is disabled by
default. It can be enabled in the config file or in the environment (e.g.
export {PREFIX}_SSH_CERT_ONLY=1
).
Other changes:
- Bump composer/ca-bundle from 1.3.7 to 1.4.0
- Use the new user-access API
- Remove support for pre-"Auth" APIs
- Remove unnecessary 'auth_api_enabled' and 'invitations' config flags
- Update country/region names from CLDR
- Remove unused available_plans config
- Fix detection of SSO (vs normal) session expiry during refresh
- SSH configuration changes:
- Rename api.ssh_domain_wildcards to ssh.domain_wildcards
- Rename api.auto_load_ssh_cert to ssh.auto_load_cert
- Rename api.add_to_ssh_agent to ssh.add_to_agent
- Rename api.write_user_ssh_config to ssh.write_user_config
- Include the SSH certificate in config even if refresh fails
SHA-256 checksum for platform.phar
:
cdd51fcccd6922a946c2356c42e70499e9ccb763b4b88fda47f08a5c1f2824d7
v4.11.5
Changes since v4.11.4:
- Enable
api.projects_list_new
by default. - Display the correct Console URL in the welcome command (when running
platform
orupsun
on its own in a project directory). - Allow auto drush aliases to be turned off via a feature flag.
These can be disabled via theapplication.drush_aliases
config option or
an env var:export {PREFIX}_APPLICATION_DRUSH_ALIASES=0
(the{PREFIX}
beingPLATFORMSH_CLI
orUPSUN_CLI
). - Warn (no error) for invalid JSON when parsing the activity log.
- Fix: invalid files being listed in "log" command.
This ignores output from other processes during the SSH connection. - Fix:
var:create --update
not respecting the--project
and--no-wait
options when updating existing variables (thanks @romainneutron). - Fix: generating a cert twice during ssh-cert:load (via auto-login).
- Fix: not activating environment with push options after asking interactively.
SHA-256 checksum for platform.phar
:
be6e4c24569d1afc467fd0c381505610958b042ebecf165e29c2991002a87614
v4.11.4
Changes since v4.11.3:
- Fix: always attempt to choose a default environment when asking interactively (#1358)
This should now apply again even when filtering is active, e.g. for the 'ssh'
command. - Fix PHP <7.3 incompatibilities in ResourcesSetCommand
SHA-256 checksum for platform.phar
:
5ba4c30a8ba438c0d143a865323cd9b5ab654136ff8d14285b2511b7c71d3880