• Runs "spin show" and returns the JSON-parsed output.

    Parameters

    • spinInstance: undefined | string

      When it's undefined, we'll fetch the latest one.

    • env: ProcessEnv = process.env

      Environment variables.

    Returns Promise<{
        fqdn: string;
    }>

    The JSON-parsed output of the Spin CLI.

    Throws

    Any error raised from the underlying Spin CLI.