Skip to main content

Step 2: Create an Application

Next, install the Replicated CLI and then create an application.

To create an application:

  1. Install the Replicated CLI:

    brew install replicatedhq/replicated/cli

    For more installation options, see Installing the Replicated CLI.

  2. 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.

  3. Create an application named Grafana:

    replicated app create Grafana
  4. 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:

    1. Get the slug for the application that you created:

      replicated app ls

      Example output:

      ID                             NAME            SLUG            SCHEDULER
      2WthxUIfGT13RlrsUx9HR7So8bR Grafana grafana-python kots

      In the example above, the application slug is grafana-python.

      info

      The 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.

    2. 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.