HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

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.

  1. 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
    
  2. Change directories into the working directory for your app. In our app example, 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
    

    πŸ“˜

    Note

    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 the OCP platform. In this example, <id> = my_new_marketing_app and <name> = "My New Marketing App":

    opti app register <id> "<name>"
    
  5. Prepare your app for upload. This validates, packages, uploads, and builds your app to prepare for publication.

    opti 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]).

    opti directory publish <appversion>
    
  7. Install the app to your account. <appVersion> is noted in the prior step, and <trackerId> is from step 1.

    opti directory install <appVersion> <trackerId>
    
  8. 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.