Publish your first OCP application
Privately publish your first app to the Optimizely Data Platform (ODP) App Directory.
As a developer in OCP, you are limited to release apps only to your private Optimizely Data Platform (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 ODP App Directory.
-
Run the following command to retrieve your trackerID. This is the ID of your ODP account and the ODP App Directory. You will use this in step 6 below.
ocp accounts whoami
-
Change directories into the working directory for your app. For this sample app, the working directory is
/Code/my-new-marketing-app
.cd my-new-marketing-app
-
Create a Git repository. For more information, see Git's documentation.
git init
Note
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 OCP. In this example,
[ID] = my_new_marketing_app
and[NAME] = "My New Marketing App"
:ocp app register [ID] "[NAME]"
-
Prepare your app for upload. This validates, packages, uploads, and builds your app to prepare for publication.
ocp 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,[email protected]
).ocp directory publish [APPVERSION]
-
Install the app to your account.
[APPVERSION]
is noted in the prior step, and[TRACKERID]
is from step 1.ocp directory install [APPVERSION] [TRACKERID]
-
Your shell app is now published to your private ODP account. In your ODP account, go to App Directory.
Note
The apps are listed in alphabetical order.


Updated about 1 month ago