Releases: platformsh/legacy-cli
Releases · platformsh/legacy-cli
v2.2.0
Adding Phar installation/build capability (not yet released) - no other changes
v2.1.0
Update with composer global update
Changes since v2.0.7
- Short option names:
--project
and--environment
can now be abbreviated as-p
and-e
. - The
platform build
command has been improved:- use the
--copy
option to build, copying (instead of symlinking) repository contents to the build (particularly useful for vanilla projects which define build hooks) - the build command now no longer requires login to build a project.
- it can now be used to build outside the context of a project, with new
--source
and--destination
options - default Drush concurrency is back up to 4
- default DB host (for new Drupal builds) is 127.0.0.1 instead of localhost
- use the
- All non-essential output now goes to stderr (while essential output still goes to stdout), for the same reasoning as this Composer issue. Still, the exit code should be checked (as
0
) before relying on output. - Minor autocomplete improvements.
- Minor testing improvements.
Other changes since v2.0.0
- The
platform init
command has been improved: it now accepts a project ID via--project
. So you can useinit
from repository even if it doesn't yet have a Platform.sh Git remote. - Everywhere a project is specified with
--project
, a--host
can be specified too. This bypasses the projects list check and fetches the project information directly. - Added
environment:set-remote
: allows you to specify the remote environment for the local Git branch (if the branch names do not match). - Standard exit code of
2
if there is no project root. - Support for using an API token via the
PLATFORMSH_CLI_API_TOKEN
environment variable. - Proxy support via
http_proxy
and/orhttps_proxy
environment variables. - A fix for building Composer-based projects on Windows.
- Accommodate non-default document roots in
platform drush
. - Other minor fixes.
See also: v.2.0.0 release notes
v2.0.0
Upgrading from 1.x to 2.x
composer global update
Changes
New built-in commands
platform <cmd>
users
,user:add
,user:role
,user:delete
- Manage users on the project.project:metadata
- Read project metadata, and update the project title.routes
- View environment routes.sql
- Run SQL on the remote environment.sql-dump
- Make a local dump of the remote environment's database.dir
- Find the local project root. This may be useful for scripted use.
New shell aliases:
plgit
- Run git in the repository directory. This can be used from anywhere inside the project root.pldr
- Run drush (if installed) for the local environment. This can also be used from anywhere inside the project root.
To use the shell aliases you should include the platform.rc
file in your shell configuration. See the README for more information.
Backwards compatibility breaking changes since v1.x:
- Use Guzzle 5 (so PHP 5.4 is now required)
- The
environment:deactivate
command has been removed - useenvironment:delete
instead