HomeGuidesAPI ReferenceGraphQL
Submit Documentation FeedbackJoin Developer CommunityLog In

Publish Your First App

This will walk you through a private publication of your first app to the Optimizely Connect Platform (OCP) App Directory.

Release A Private Version of Your App

As a developer on the OCP platform, you are limited to a release of apps ONLY to your private account. Publication for general consumption is covered later in the documentation.

This section will walk you through a release of your new app to your instance of the App Directory.

Get Your Tracker ID

Run the command opti accounts whoami to retrieve your trackerID. This is the ID of your ODP account and the OCP App Directory.

Build a Git Repository

CD into the working directory for your app. Run git init to create a Git repository.

Run Yarn Build

Run yarn build in your working directory, which converts content to Typescript.

Validate The App

Run opti app validate to have your build validated locally.

Register The App

You will need the App ID and App Display Name for this step. You can find them in the app.yml file in your working directory.

Contents from the app.yml fileContents from the app.yml file

Contents from the app.yml file

Run opti app register [--id=<id>] [--name=<name>] where id=app_id and name=display_name:

Upload the App

Upload your app to OCP using opti app upload from the working directory:

Publish Your App

Use the command at the bottom of the last step, opti directory publish <app_id>@<version>:

Install Your App

Use opti directory install <appVersion> <trackerId> to install your app in your private instance of the App Directory. AppVersion is the App ID and version number ([email protected]) and the Tracker Id was retrieved in the first step.

Viewing Your App in the App Directory

Open you ODP instance. Navigate to to the App Directory:

The apps are listed in alphabetical order. Scroll until you find your app:

Clean Up The Environment

Unpublish your app when complete to help us maintain clean and tidy production environment. Run opti directory unpublish <appVersion> to uninstall and unpublish your app.


Did this page help you?