• 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: "spin" | "codespaces" | "gitpod" | "cloudShell" | "localhost";
    }

    Cloud platform information.

    • editor: boolean
    • platform: "spin" | "codespaces" | "gitpod" | "cloudShell" | "localhost"