Skip to content

Releases: platformsh/legacy-cli

v4.14.1

01 Feb 14:43

Choose a tag to compare

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
      variable PLATFORMSH_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.

v4.14.0...v4.14.1

SHA-256 checksum for platform.phar:
fb87dbb178035bb8b12fb8889c9db83d5a7ff0c8ceab5a690eff9fe19e2c5f38

v4.14.0

24 Jan 11:17

Choose a tag to compare

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

v4.13.1...v4.14.0

SHA-256 checksum for platform.phar:
451e3ba31b40d3409a0378db96a3e9603ed0e33e7fdc0590c2a2d670f99b6de2

v4.13.1

18 Jan 13:31

Choose a tag to compare

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.

v4.13.0...v4.13.1

SHA-256 checksum for platform.phar:
ffea2b07660002cb2be944b75eaa0a8356e05466dcc4d618f2b492a7edbcf36e

v4.13.0

17 Jan 20:51

Choose a tag to compare

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 the branch command.
  • Make SSH options configurable, using the ssh.options YAML config key or
    the {PREFIX}_SSH_OPTIONS environment variable. The RequestTTY force
    option will no longer be sent by default in the ssh command. The
    --identity-file (-i) option for ssh 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 to ssh when using sql with the --raw flag.
  • Un-beta metrics and runtime ops commands.
  • Deprecate db:size and mount: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.

v4.12.1...v4.13.0

SHA-256 checksum for platform.phar:
af5e4a76b5e2ec89fbe8165ee36e18ec8693c35a4695df58fd91c40c3595d1f0

v4.12.1

29 Dec 10:10

Choose a tag to compare

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

v4.12.0...v4.12.1

SHA-256 checksum for platform.phar:
22cbe0a0be3a3f91e646cbeb6a85fb5e8782b65814ffd6d1ab22bde9a6a87fb7

v4.12.0

23 Dec 16:33

Choose a tag to compare

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 an ssh.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

v4.11.5...v4.12.0

SHA-256 checksum for platform.phar:
cdd51fcccd6922a946c2356c42e70499e9ccb763b4b88fda47f08a5c1f2824d7

v4.11.5

13 Dec 11:18

Choose a tag to compare

Changes since v4.11.4:

  • Enable api.projects_list_new by default.
  • Display the correct Console URL in the welcome command (when running
    platform or upsun on its own in a project directory).
  • Allow auto drush aliases to be turned off via a feature flag.
    These can be disabled via the application.drush_aliases config option or
    an env var: export {PREFIX}_APPLICATION_DRUSH_ALIASES=0 (the {PREFIX}
    being PLATFORMSH_CLI or UPSUN_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.

v4.11.4...v4.11.5

SHA-256 checksum for platform.phar:
be6e4c24569d1afc467fd0c381505610958b042ebecf165e29c2991002a87614

v4.11.4

06 Dec 14:21

Choose a tag to compare

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

v4.11.3...v4.11.4

SHA-256 checksum for platform.phar:
5ba4c30a8ba438c0d143a865323cd9b5ab654136ff8d14285b2511b7c71d3880

v4.11.3

06 Dec 09:45

Choose a tag to compare

Changes since v4.11.2:

  • Respect resource limits, where flexible resources are used.

    This prevents adding resources that exceed the organization limit which could
    lead to a broken environment. It calculates if the requested update will
    exceed the current limit and if it does, it stops the operation. In case the
    user wants to proceed, they can use the --force argument.

  • Fix typo in reading --resources-init option.

  • Improve file locking on MacOS (using fsync or fflush).

  • Fix check for whether the SSO session expired - improves error message.

v4.11.2...v4.11.3

SHA-256 checksum for platform.phar:
b6f6156ddf21129fd4dbc14c74df3fc8bf3029b52b11ea4efddf58ad82bc732e

v4.11.2

01 Dec 00:26

Choose a tag to compare

Changes since v4.11.1:

  • Fix push command when push options are disabled.
    This fixes an error with the message: The "resources-init" option does not exist.

v4.11.1...v4.11.2

SHA-256 checksum for platform.phar:
3297bffb9e08d61cedb156eb63037403c2b0fe5f2f572350280cd54eddea6869