MultiConnectMultiConnectDocs Website home
MultiConnectCloud › Website Deployments

9. Deploy with the CLI

The MultiConnect CLI uploads a new build from a terminal or a CI pipeline. Create the website on the dashboard first; the CLI updates a website that already exists.

  1. Under Access Keys, create a key with Allow deploys (CLI) on.
  2. On the website page, in Access Keys, search for the key and attach it. A website accepts only keys with Allow deploys (CLI) on, and up to 5 keys.
  3. In your project folder, run multiconnect init. Give your output folder, such as dist, as the build path, and your build command, such as npm run build.
  4. Run multiconnect deploy.

Script 9.1: link the folder, then deploy

multiconnect init
multiconnect deploy

The CLI zips the build path for you, so point it at the output folder. A deploy uses the website's current settings, and the output folder is found as described in Section 3. To change website settings and deploy in one step, run multiconnect deploy --config in your own terminal.

For installing the CLI, deploying from CI and every option, see the CLI Guide.