Skip to content Integration

Consider using ddev get platformsh/ddev-platformsh (platformsh/ddev-platformsh for more complete integration.

ddev provides integration with the Website Management Platform, which allows users to quickly download and provision a project from in a local ddev-managed environment.

ddev's integration pulls database and files from an existing site/environment into your local system so you can develop locally. Global Configuration

You need to obtain and configure an API token first. This is only needed once.

  1. Login to the Dashboard and go to Account->API Tokens to create an API token for ddev to use.
  2. Add the API token to the web_environment section in your global ddev configuration at ~/.ddev/global_config.yaml:
  - PLATFORMSH_CLI_TOKEN=abcdeyourtoken per Project Configuration

  1. Check out the site from and then configure it with ddev config. You'll want to use ddev start and make sure the basic functionality is working.
  2. Add PLATFORM_PROJECT and PLATFORM_ENVIRONMENT variables to your project.

    • Either in .ddev/config.yaml or a .ddev/config.*.yaml file:

        - PLATFORM_PROJECT=nf4amudfn23biyourproject
    • Or with a command from your terminal:

      ddev config --web-environment-add="PLATFORM_PROJECT=nf4amudfn23bi,PLATFORM_ENVIRONMENT=main"
  3. ddev restart

  4. Run ddev pull platform. After you agree to the prompt, the current upstream database and files will be downloaded.
  5. Optionally use ddev push platform to push local files and database to Note that ddev push is a command that can potentially damage your production site, so this is not recommended.


  • ddev pull platform will connect to to download database and files. To skip downloading and importing either file or database assets, use the --skip-files and --skip-db flags.
  • If you need to change the platform.yaml recipe, you can change it to suit your needs, but remember to remove the "#ddev-generated" line from the top of the file.

Last update: August 24, 2022