Skip to content

Latest commit

 

History

History

platformsh

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Platform.sh

This example demonstrates installing the Platform.sh CLI and some useful tooling for interacting with Platform.sh.

Instructions

  1. Acquire your Platform.sh project ID. It can be found in the URL when viewing your project in the Platform.sh Management Console.
  2. Paste the project ID as the value of the PLATFORMSH_PROJECT_ID environment variable in the services overrides section of your lando.yml.
  3. Generate an API token for Platform CLI in your Platform.sh account settings.
  4. Copy the .env.default file to a new file named .env and place your API token as the value of PLATFORMSH_CLI_TOKEN in that file.

You should now be able to run lando platform list to see the available Platform CLI commands.

Included Tooling

lando platform - Run Platform CLI commands. lando alias-dl - Download Drush alias files for your environments. lando db-dl - Download a database dump from your master environment. lando files-dl Download files from your master environment.