To access an app in a given environment via the CLI, run the following command:
platform ssh --project PROJECT_ID --environment ENVIRONMENT_NAME --app APPLICATION_NAME
Replace each of PROJECT_ID
, ENVIRONMENT_NAME
, and APPLICATION_NAME
with the values you want to access.
Note: You can avoid the --app
if you don't have multiple apps.
The short form is platform ssh -p PROJECT_ID -e ENVIRONMENT_NAME
For more information on this feature, please see the following page in the Platform.sh documentation: