Step 2: Create an Application
Next, install the Replicated CLI and then create an application.
To create an application:
-
Install the Replicated CLI:
brew install replicatedhq/replicated/cli
For more installation options, see Installing the Replicated CLI.
-
Authorize the Replicated CLI:
replicated login
In the browser window that opens, complete the prompts to log in to your vendor account and authorize the CLI.
-
Create an application named
Grafana
:replicated app create Grafana
-
Set the
REPLICATED_APP
environment variable to the application that you created. This allows you to interact with the application using the Replicated CLI without needing to use the--app
flag with every command:-
Get the slug for the application that you created:
replicated app ls
Example output:
ID NAME SLUG SCHEDULER
2WthxUIfGT13RlrsUx9HR7So8bR Grafana grafana-python kotsIn the example above, the application slug is
grafana-python
.infoThe application slug is a unique string that is generated based on the application name. You can use the application slug to interact with the application through the Replicated CLI and the Vendor API v3. The application name and slug are often different from one another because it is possible to create more than one application with the same name.
-
Set the
REPLICATED_APP
environment variable to the application slug.MacOS Example:
export REPLICATED_APP=grafana-python
-
Next Step
Add the Replicated SDK to the Helm chart and package the chart to an archive. See Step 3: Package the Helm Chart.