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

    Subclass of oclif's Config that loads command classes on demand for faster CLI startup.

    Hierarchy

    • Config
      • ShopifyConfig
    Index

    Constructors

    • Parameters

      • options: Options

      Returns ShopifyConfig

    Methods

    • Override runCommand to use lazy loading when available. Instead of calling cmd.load() which triggers loading ALL commands via index.js, we directly import only the needed command module.

      Type Parameters

      • T = unknown

      Parameters

      • id: string

        The command ID to run.

      • argv: string[] = []

        The arguments to pass to the command.

      • cachedCommand: Loadable | null = null

        An optional cached command loadable.

      Returns Promise<T>

      The command result.