@shopify/cli-kit
    Preparing search index...

    Function cloudEnvironment

    • Returns the cloud environment platform name and if the platform support online IDE in case the CLI is run from one of them. Platform name 'localhost' is returned otherwise.

      Parameters

      • env: ProcessEnv = process.env

        Environment variables used when the cli is launched.

      Returns {
          editor: boolean;
          platform: "codespaces" | "gitpod" | "cloudShell" | "localhost";
      }

      Cloud platform information.