We are proud to release a new major version of the Platform.sh CLI. We got some great feedback from you and there are some major changes to the way the CLI works… so you should pay attention … This post will help you with updating your CLI installation, and it will explain some of the major changes.Documentation Index
Fetch the complete documentation index at: https://developer.upsun.com/llms.txt
Use this file to discover all available pages before exploring further.
Updating
You can update with the command:platform self-update (but do read this first).
New file structure
The Platform.sh CLI version 3.0.0 includes a major change to the way it structures your files. Previously the CLI always needed your project to have all its code inside arepository subdirectory, and it kept its own data one level up, in files such as .platform-project , builds , and a www symlink. Example structure with the CLI version 2.x.x:
git clone ) - now it can.
So, the CLI version 3 has changed the file structure. It runs directly inside your project’s repository.
Example structure with the CLI version 3.x.x:
platform legacy-migrate . A backup of your project will be created to ensure you do not lose any data.
New web root location.
The CLI version 3 has a different location for the local “web root” symlink: it has changed fromwww to _www . This is to avoid conflicts with files in your repository.
The web root will only exist if you run the command: platform build
You may need to update your local web server configuration: just change www to _www .
New metadata location.
The CLI version 3 keeps its own metadata about your project inside a folder named.platform/local/ . This is automatically excluded from Git.