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

    Function localCLIVersion

    • Returns the version of the local dependency of the CLI if it's installed in the provided directory.

      Parameters

      • directory: string

        Path of the project to look for the dependency.

      Returns Promise<string | undefined>

      The CLI version or undefined if the dependency is not installed.