Step 3 of 4 (75% complete)

Simplified Deployment with @kunalshetye/opticloud

Deployment Without PowerShell – The @kunalshetye/opticloud NPM Package

For many developers, the first contact with Optimizely happens through the SaaS CMS, and they often have no experience with Optimizely DXP or PowerShell-based deployments. In these cases, the @kunalshetye/opticloud package is an excellent solution.

This modern CLI tool, created by Kunal, handles the entire deployment process in a simple and developer-friendly way — whether you're deploying a headless app, CMS, commerce project, or even a SQL database.


How to Deploy Using the Optimizely DXP CLI

1. Install the Package

npm install -g @kunalshetye/opticloud

2. Authentication

Run:

opticloud auth:login

You’ll be prompted to enter:

  • Client Key (from the DXP Cloud portal)
  • Client Secret (from the DXP Cloud portal)
  • Project ID (GUID of your DXP project)

3. Deployment Process

You can either use the familiar flow of manually creating a ZIP package, uploading it, and starting the deployment using individual commands provided by the package - or you can simplify the entire process by using the powerful ship command:

opticloud ship ./ \
  --target=test1 \
  --type=head \
  --prefix=optimizely-one \
  --version=1.0.0 \
  --output=./

The ship command is the ultimate streamlined solution for Optimizely DXP deployments. It orchestrates the complete workflow - from source code to production - in a single command.

4. GitHub Actions Integration

The package comes with a ready-to-use setup for CI/CD with GitHub Actions.

You can find the official example workflow and documentation here: 👉 GitHub Actions Documentation

Summary

Kunal has done an outstanding job creating a modern deployment tool that drops the complexity of PowerShell and the legacy EpiCloud module. It simplifies the deployment experience for developers who may have never worked with Optimizely before.

With opticloud, you can:

  • Deploy headless apps, CMS sites, commerce platforms, and SQL databases
  • Use GitHub Actions for seamless CI/CD
  • Avoid the steep learning curve of traditional DXP tooling

📘 Highly recommended: Dive into the official documentation to explore all features -> opticloud

Have questions? I'm here to help!

Contact Me