Dev Guide
Dev GuideUser GuideGitHubNuGetDevCommunityDoc feedbackLog In

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.

  1. 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
  2. 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
  3. Create a Git repository. For more information, see Git's documentation.

    git init



    The output should look similar to the following:

    Initialized empty Git repository in /Users/user/Code/my-new-marketing=app/.git/
  4. 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]"
  5. Prepare your app for upload. This validates, packages, uploads, and builds your app to prepare for publication.

    ocp app prepare
  6. 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]
  7. Install the app to your account. [APPVERSION] is noted in the prior step, and [TRACKERID] is from step 1.

    ocp directory install [APPVERSION] [TRACKERID]
  8. 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.