Publish your first OCP application
Privately publish your first app to the Optimizely Connect Platform (OCP) App Directory.
As a developer on the OCP platform, you are limited to release apps only to your private ODP account, using the
dev tag convention as shown in this example. Publication for general consumption or to other ODP accounts is covered later in the documentation.
Release a private version of your app
Complete the following steps to release your app to your private instance of the OCP App Directory.
Run the following command to retrieve your trackerID. This is the ID of your ODP account and the OCP App Directory. You will use this in step 6 below.
opti accounts whoami
Change directories into the working directory for your app. In our app example, the working directory is
Create a Git repository. For more information, see Git's documentation.
The output should look similar to the following:
Initialized empty Git repository in /Users/user/Code/my-new-marketing=app/.git/
Run the following command to register your app with the OCP platform. In this example,
<id> = my_new_marketing_appand
<name> = "My New Marketing App":
opti app register <id> "<name>"
Prepare your app for upload. This validates, packages, uploads, and builds your app to prepare for publication.
opti app prepare
Make your app available for use privately in your ODP account.
<appversion>is the combination of your app ID and the version number (for example,
opti directory publish <appversion>
Install the app to your account.
<appVersion>is noted in the prior step, and
<trackerId>is from step 1.
opti directory install <appVersion> <trackerId>
Your shell app is now published to your private ODP account. In your ODP account, go to App Directory.
The apps are listed in alphabetical order.
Updated 3 months ago