HomeGuidesAPI ReferenceGraphQL
Submit Documentation FeedbackJoin Developer CommunityLog In

Initialize Your First App

This section describes how initialize an app from scratch on with the Optimizely Connect Platform (OCP) command line interface (CLI).

Starting Out

This section will walk you through builidng an app using a pre-defined scaffold with the CLI.

Intialize an App from Scratch

In the directory you want to create your app structure, run opti app init and follow the on-screen instructions. In this example, let's build a "Marketing" application.

Name your app anything you'd like. In this example we've named the app My Marketing App

Accept the default for the "ID of your app".

Update the version to 0.0.0-dev.1. More on versioning later.

Provide a brief summary of your app. The summary is unimortant for this example.

Provide a correctly structured URL for the "Support URL". The URL doesn't matter at this point, but a URL is required for the build.

Provide a correctly structured email address for "Contact email address". The email address doesn't matter at this point, but an email address is required for the build.

Select "Marketing" as the category:

Select the "Basic Sample", this will build a scaffold for a Marketing app:

Accept the directory name (it's named after your app):

The CLI will now run through the build process and create the scaffold for the app. Move into the new directory and list the contents to see the scaffold:

Your app has now been built on your local machine. You can learn more about the structure in the "App Structure" section of our documentation. Next, learn how to publish your app to the App Directory.


Did this page help you?