Step 2: Create an Application
After you install the replicated CLI and create an API token, you can use the CLI to create a new application.
To create an application:
Run the following command to create an application named
cli-tutorial:replicated app create cli-tutorialExample output:
ID NAME SLUG SCHEDULER
2GmY... cli-tutorial cli-tutorial kotsExport the application slug in the output of the
app createcommand as an environment variable:export REPLICATED_APP=YOUR_SLUGReplace
YOUR_SLUGwith the slug for the application you created in the previous step.Verify that both the
REPLICATED_API_TOKENenvironment variable that you created as part of Step 1: Install the replicated CLI and theREPLICATED_APPenvironment variable are set correctly:replicated release lsIn the output of this command, you now see an empty list of releases for the application:
SEQUENCE CREATED EDITED ACTIVE_CHANNELS
Next Step
Continue to Step 3: Get the Sample Manifests to download the manifest files for a sample Kubernetes application. You will use these manifest files to create the first release for the cli-tutorial application.