Releases: platformsh/legacy-cli
v4.9.0
Changes since v4.8.6:
New features:
- Improvements to the
push
command:- Allow the current directory not to be mapped to a project - it need only be
a Git repository. - Also allow pushing to a different project (other than the one mapped to the
directory). - Add or change the Git remote if
--set-upstream
is given; recommend
set-remote
otherwise. - State what will happen and then ask for confirmation before pushing in all
interactive cases (not just when pushing to production). - Use Git Push Options if available to activate the environment or set its
parent (disabled by default). - Add a configuration option
detection.push_deploy_error_messages
which
lists messages that indicate a deployment error, for example "Error
building project" or "Environment redeployment failed". If one of these
error messages is found in the Git push log, report it and return a
non-zero (failure) exit code,87
. Note this is only possible on the push
that causes the initial deployment error; a subsequent push without a new
commit would result in "Everything up-to-date" and a0
(success) exit
code.
- Allow the current directory not to be mapped to a project - it need only be
- Improve tunnel commands:
- Add the 'url' as a property of each service in
tunnel:info
. - Deprecate table-related options that were unused in
tunnel:info
. - Add the tunnel 'url' as an optional table column in
tunnel:list
.
- Add the 'url' as a property of each service in
- Add a
--bytes
(-B
) option to themetrics
command.
Other changes:
- Improvements to the
web
command:- Build the correct Console URL where relevant.
- Allow for no environment to be selected.
- Improve the command description.
- Fix the error when no project is selected and no
service.accounts_url
is
configured.
- Update SSH certificate support:
- Reduce the expiry buffer from 5 to 2 minutes.
- Refresh the certificate after a failed connection if it is invalid.
- Ensure the certificate matches necessary access token claims.
- Fix extension decoding in
ssh-cert:info
.
- Bump composer/ca-bundle from 1.3.6 to 1.3.7 (#1317)
- Add two more activity types to the list
- Add the environment commit to the local environment variables cache key
- Lowers the risk of a stale cache for commands such as "relationships"
- Removes the cache clear after the "push" command
- Bump giggsey/libphonenumber-for-php from 8.13.18 to 8.13.19 (#1312)
- Remove the minimum interval in metrics commands
- Show command signature in help for "You must specify a project" error
- Clarify 403 errors that may or may not be project-related
- Filter by permissions (HAL link) when auto-selecting a project organization
- Make the logo configurable for browser login
- Use --include before --exclude in rsync commands (#1304)
SHA-256 checksum for platform.phar
:
c52a0dca5026626f2707a7dabc0cf565368e62b843cfd4e1af9e31dbd8389d76
v4.8.6
Changes since v4.8.5:
- Fix undefined BadResponseException class in variable:create command
- Fix a PHP < 7.3 incompatibility in mount:size command
- Fix TypeError in "create" command when fetching available regions
SHA-256 checksum for platform.phar
:
33b672f57ccd9b6717cd1637a810f7122525caffd5779e61ef7035a4c114f05f
v4.8.5
Changes since v4.8.4:
- Fix "Configuration not defined: application.tmp_sub_dir" when the user config dir is not writable
SHA-256 checksum for platform.phar
:
a25cbe11b7689cf387972d409ad3671ca150a38b428917fb127834840b86f8f3
v4.8.4
Changes since v4.8.3:
Changes to internals:
- Simplify configuration by introducing a defaults file
- Allow any configuration to be overridden in the user-specific config file
(though please note that local overrides can make updates more complex) - Remove old release note format from manifest.json
And some minor bug fixes:
- Fix type of http_build_query() argument in oauth-listener/index.php
- Fix notice when additional sessions are active, 'Undefined array key "session_id"'
SHA-256 checksum for platform.phar
:
5cd9ff5919410c30b56b1ffdb0d15980635c45a9d3a278efb85d6a1f40fe29e0
v4.8.3
Changes since v4.8.2:
- Fix SSH command quoting on Windows.
- Handle only one available plan in the
project:create
(create
) command
(use it as the default). - Fix message when no runtime operations are found in the
ops
command. - Remove extra newline in
env:delete
command output. - Bump giggsey/libphonenumber-for-php from 8.13.17 to 8.13.18 (#1302)
SHA-256 checksum for platform.phar
:
d27b3dadbfe49873580fa71c886f3a7849cc2c382919467a8321f1630a3f3218
v4.8.2
Changes since v4.8.1:
- Fix activity:cancel state error message
- Fix PHP < 7.3 compatibility (parse error for RuntimeOperation\ListCommand.php)
SHA-256 checksum for platform.phar
:
7c7065b79f8448514735010e346e2ff6e61c19816c14e6ca82efb4340df79aa5
v4.8.1
Changes since v4.8.0:
- Fix quoting an ssh command when provided as a single arg
SHA-256 checksum for platform.phar
:
16873c481278d19dd6686b443b3d1e2a78d4553542bda22e2081e06c8fd6d687
v4.8.0
Changes since v4.7.2:
New features:
- Support runtime operations:
- Add an
op:list
(ops
) command to list operations. - Add an
op:run
command to execute an operation.
- Add an
- Allow a dot (
.
) to select the default environment in the
--environment
(-e
) option. - Config improvements:
- Add more defaults for generic values.
- Document defaults in the config.yaml file.
- Support
CLI_CONFIG_FILE
to override the config (for internal use).
- Custom (non-production) domains improvements:
- Present an interactive choice of domain to attach.
- Warn about attached domains on deletion.
- Compatibility with project system version 22 (omit
type
parameter when
creating a domain). - Remove beta messaging.
- Change
--replace
to--attach
.
Other changes:
- Improve printing of the selected project and environment.
- Split list/array args by commas (not just the first arg).
- Bump giggsey/libphonenumber-for-php from 8.13.15 to 8.13.17.
- Add organization metadata in the
org:user:projects
command. - Improvements to the
project:get
(get
) command:- Always display Git errors.
- Allow the
build
command to be disabled. - Remove the recommendation to build after cloning.
- Improve activity log handling:
- Handle multiple activities on environment actions.
- Prioritize displaying the log if there is one non-integration activity.
- Display activity descriptions before waiting for them.
- Improve elapsed time formatting.
- Suggest exclusions in the
activity:list
command. - Add shortcuts for
--exclude-type
(-x
) and--type
(-t
) to more
activity commands. - Fix quoting of SSH arguments when multiple are given on the command line.
For example the following command will now work:platform ssh -- sed -n '/04\/Aug\/2023\:09\:40/, /04\/Aug\/2023\:09\:45/p' /var/log/access.log
- Improve Drupal app detection via composer packages.
- Improvements to the
branch
command, including removing the--force
option. - Recommend
project:create
fromproject:list
. - Fix interactive selection of project-level variables.
- Fix "Link not found: #manage-variables" when the user has read-only variables access.
- Alias
project:set-remote
asset-remote
- Allow paused environments to be deactivated.
- Update the legacy region condition in
backup:restore
.
SHA-256 checksum for platform.phar
:
4cef2642df849f0e71bd5abfbd7fcf51dab52a59ba8a35b994b3bbc3fbead23d
v4.7.2
Changes since v4.7.1:
- Add support for checking whether ticket-based user verification is required.
- Fix "Incorrectly nested style tag found" error. This was caused by bad
formatting for the "login required" exception message when wrapped for
narrower terminals (platformsh/cli#85)
SHA-256 checksum for platform.phar
:
7df2eb82ab34d8f6e9de9e7a572c8e65a33463ae9ed34cc8d2a154accb7ec768
v4.7.1
Changes since v4.7.0:
- Restore the check to prevent deleting parent environments.
The check had been imprudently removed inv4.7.0
.
This adds an option--allow-delete-parent
as a way to skip the check. - Improve singular/plural output formatting in
env:delete
. - Improve the check for the production environment in the
push
command. - Only check for updates if the containing directory is writable (for legacy
only-Phar installations). - Dependency updates:
- Bump giggsey/libphonenumber-for-php from 8.13.12 to 8.13.15
- Bump composer/ca-bundle from 1.3.5 to 1.3.6
- SSH error handling improvements:
- Avoiding recommending
ssh-keyscan
as it could be confusing. - Improve SSH error message when an environment is inactive.
- Set timeout on test SSH connection.
- Avoiding recommending
SHA-256 checksum for platform.phar
:
8fe85b3e00508fa7f38bd361a3d0466a6946b3abebc21346cca608e48409acf7