{
  "commands": {
    "deploy": {
      "aliases": [],
      "args": {
        "env": {
          "description": "The target Constructor environment to deploy to.",
          "name": "env",
          "options": [
            "development",
            "qa",
            "production",
            "demo"
          ],
          "required": true
        }
      },
      "description": "Deploys all templates defined on the `connectrc.js` file to the specified environment, after running tests ('--force' to skip). \n\nThe script will use the `CONNECT_AUTH_TOKEN` environment variable to authenticate with Constructor.",
      "examples": [
        "$ <%= config.bin %> deploy development",
        "$ <%= config.bin %> deploy qa",
        "$ <%= config.bin %> deploy production",
        "$ <%= config.bin %> deploy production --force"
      ],
      "flags": {
        "cloud": {
          "description": "Use the cloud config (connectrc.js) even if a local config (connectrc.local.js) exists",
          "name": "cloud",
          "allowNo": false,
          "type": "boolean"
        },
        "force": {
          "char": "f",
          "description": "Skip tests before deploying",
          "name": "force",
          "allowNo": false,
          "type": "boolean"
        }
      },
      "hasDynamicHelp": false,
      "hiddenAliases": [],
      "id": "deploy",
      "pluginAlias": "@constructor-io/constructorio-connect-cli",
      "pluginName": "@constructor-io/constructorio-connect-cli",
      "pluginType": "core",
      "strict": true,
      "enableJsonFlag": false,
      "isESM": false,
      "relativePath": [
        "dist",
        "commands",
        "deploy.js"
      ]
    },
    "execute": {
      "aliases": [],
      "args": {},
      "description": "Execute a template against a connection and fixture to see the resulting transformed data. Each value not provided as a flag will be prompted for when the command is executed.",
      "examples": [
        "$ <%= config.bin %> execute",
        "$ <%= config.bin %> execute --template-path=item/item.jsonata",
        "$ <%= config.bin %> execute --template-path=item/item.js",
        "$ <%= config.bin %> execute --template-path=item/item.ts",
        "$ <%= config.bin %> execute --template-path=variation/variation.jsonata",
        "$ <%= config.bin %> execute --template-path=item_group/item_group.jsonata --fixture-path=item_group.json",
        "$ <%= config.bin %> execute --template-path=grouping/grouping.jsonata --connection-id=example-connection-id",
        "$ <%= config.bin %> execute --template-path=mapping/mapping.jsonata"
      ],
      "flags": {
        "cloud": {
          "description": "Use the cloud config (connectrc.js) even if a local config (connectrc.local.js) exists",
          "name": "cloud",
          "allowNo": false,
          "type": "boolean"
        },
        "template-path": {
          "description": "The path to the template to execute. Must be in the 'src/templates' directory.",
          "name": "template-path",
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "fixture-path": {
          "description": "The path to the fixture to execute the template against. Must be in the 'src/fixtures' directory.",
          "name": "fixture-path",
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "external-data-path": {
          "description": "The path to the external data to execute the template against. Must be in the 'src/fixtures/external_data' directory.",
          "name": "external-data-path",
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "connection-id": {
          "description": "The ID of the connection to execute the template against.",
          "name": "connection-id",
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "override-date": {
          "description": "Date with which to override $now and $millis in the template.",
          "name": "override-date",
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        }
      },
      "hasDynamicHelp": false,
      "hiddenAliases": [],
      "id": "execute",
      "pluginAlias": "@constructor-io/constructorio-connect-cli",
      "pluginName": "@constructor-io/constructorio-connect-cli",
      "pluginType": "core",
      "strict": true,
      "enableJsonFlag": false,
      "isESM": false,
      "relativePath": [
        "dist",
        "commands",
        "execute.js"
      ]
    },
    "generate-fixture": {
      "aliases": [],
      "args": {},
      "description": "This command will fetch one fixture from the server and save it into a specified file. This fixture file will be an example of how the data would be passed to the connector when executing the templates.\n You are expected to customize this file to match the data you expect to cover in a template execution (e.g. an item with stock, a variation with missing data), etc. Note that you can have multiple fixtures of the same type to cover different scenarios.\n Finally, if the file already exists you'll be prompted to overwrite it.",
      "examples": [
        "$ <%= config.bin %> generate-fixture",
        "$ <%= config.bin %> generate-fixture --connection=my-connection-id --type=item --filename=my-fixture.json",
        "$ <%= config.bin %> generate-fixture --connection=my-connection-id --type=item --filename=my-fixture.json --auto-id",
        "$ <%= config.bin %> generate-fixture --connection=my-connection-id --type=variation --filename=my-fixture.json",
        "$ <%= config.bin %> generate-fixture --connection=my-connection-id --type=variation --item-id=123456789 --variation-id=987654321 --filename=my-fixture.json",
        "$ <%= config.bin %> generate-fixture --connection=my-connection-id --type=variation --item-id=123456789 --filename=my-fixture.json",
        "$ <%= config.bin %> generate-fixture --connection=my-connection-id --type=variation --filename=my-fixture.json --replace-file",
        "$ <%= config.bin %> generate-fixture --connection=my-shopify-connection-id --type=item_group --item-group-id=123456789 --filename=my-fixture.json",
        "$ <%= config.bin %> generate-fixture --connection=my-shopify-connection-id --type=item_group --item-group-id=gid://shopify/Collection/123456789 --filename=my-fixture.json",
        "$ <%= config.bin %> generate-fixture --connection=my-shopify-connection-id --type=item_group --filename=my-fixture.json --auto-id"
      ],
      "flags": {
        "cloud": {
          "description": "Use the cloud config (connectrc.js) even if a local config (connectrc.local.js) exists",
          "name": "cloud",
          "allowNo": false,
          "type": "boolean"
        },
        "connection": {
          "description": "The connection to generate the fixture for",
          "name": "connection",
          "required": false,
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "type": {
          "description": "The type of fixture to generate",
          "name": "type",
          "required": false,
          "hasDynamicHelp": false,
          "multiple": false,
          "options": [
            "item",
            "variation",
            "item_group",
            "external_data",
            "mapping"
          ],
          "type": "option"
        },
        "filename": {
          "description": "The name of the fixture file to generate",
          "name": "filename",
          "required": false,
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "item-id": {
          "description": "The ID of the item to generate the fixture for",
          "exclusive": [
            "auto-id",
            "item-group-id"
          ],
          "name": "item-id",
          "required": false,
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "item-group-id": {
          "description": "The ID of the item group to generate the fixture for (only applicable when --type=item_group). For Shopify, this is the Collection ID (e.g. 123456789 or gid://shopify/Collection/123456789)",
          "exclusive": [
            "auto-id",
            "item-id",
            "variation-id"
          ],
          "name": "item-group-id",
          "required": false,
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "variation-id": {
          "description": "The ID of the variation to generate the fixture for (only applicable when --type=variation)",
          "name": "variation-id",
          "required": false,
          "hasDynamicHelp": false,
          "multiple": false,
          "type": "option"
        },
        "auto-id": {
          "description": "Use an automatically generated sample ID instead of providing a specific one (only for live fixtures)",
          "name": "auto-id",
          "required": false,
          "allowNo": false,
          "type": "boolean"
        },
        "replace-file": {
          "description": "Whether to replace the fixture file if it already exists without asking",
          "name": "replace-file",
          "required": false,
          "allowNo": false,
          "type": "boolean"
        }
      },
      "hasDynamicHelp": false,
      "hiddenAliases": [],
      "id": "generate-fixture",
      "pluginAlias": "@constructor-io/constructorio-connect-cli",
      "pluginName": "@constructor-io/constructorio-connect-cli",
      "pluginType": "core",
      "strict": true,
      "enableJsonFlag": false,
      "isESM": false,
      "relativePath": [
        "dist",
        "commands",
        "generate-fixture.js"
      ]
    },
    "init": {
      "aliases": [],
      "args": {
        "name": {
          "description": "name of the new folder",
          "name": "name",
          "required": true
        }
      },
      "description": "Bootstrap a new Constructor.io Connect CLI repository.",
      "examples": [
        "<%= config.bin %> <%= command.id %>",
        "<%= config.bin %> <%= command.id %> new-repo-name",
        "<%= config.bin %> <%= command.id %> new-repo-name --engine=ts",
        "<%= config.bin %> <%= command.id %> new-repo-name --engine=js"
      ],
      "flags": {
        "engine": {
          "description": "The template engine to use for the new repository.",
          "name": "engine",
          "default": "jsonata",
          "hasDynamicHelp": false,
          "multiple": false,
          "options": [
            "jsonata",
            "js",
            "ts"
          ],
          "type": "option"
        }
      },
      "hasDynamicHelp": false,
      "hiddenAliases": [],
      "id": "init",
      "pluginAlias": "@constructor-io/constructorio-connect-cli",
      "pluginName": "@constructor-io/constructorio-connect-cli",
      "pluginType": "core",
      "strict": true,
      "enableJsonFlag": false,
      "isESM": false,
      "relativePath": [
        "dist",
        "commands",
        "init.js"
      ]
    },
    "pull": {
      "aliases": [],
      "args": {},
      "description": "Pulls the deployed templates from Constructor and overwrites the local files defined in your `connectrc.js`. \n\nBy default it pulls the templates your connections currently run. When they run different templates, you will be prompted to choose which one to pull. \n\nWith `--history` you choose one of your connections and then one of its past deployments to pull.",
      "examples": [
        "$ <%= config.bin %> pull",
        "$ <%= config.bin %> pull --history"
      ],
      "flags": {
        "cloud": {
          "description": "Use the cloud config (connectrc.js) even if a local config (connectrc.local.js) exists",
          "name": "cloud",
          "allowNo": false,
          "type": "boolean"
        },
        "history": {
          "description": "Choose a connection and one of its past deployments to pull, instead of the templates it currently runs.",
          "name": "history",
          "allowNo": false,
          "type": "boolean"
        }
      },
      "hasDynamicHelp": false,
      "hiddenAliases": [],
      "id": "pull",
      "pluginAlias": "@constructor-io/constructorio-connect-cli",
      "pluginName": "@constructor-io/constructorio-connect-cli",
      "pluginType": "core",
      "strict": true,
      "enableJsonFlag": false,
      "isESM": false,
      "relativePath": [
        "dist",
        "commands",
        "pull.js"
      ]
    },
    "refresh-connections": {
      "aliases": [],
      "args": {},
      "description": "Refresh the connections list",
      "flags": {
        "cloud": {
          "description": "Use the cloud config (connectrc.js) even if a local config (connectrc.local.js) exists",
          "name": "cloud",
          "allowNo": false,
          "type": "boolean"
        }
      },
      "hasDynamicHelp": false,
      "hiddenAliases": [],
      "id": "refresh-connections",
      "pluginAlias": "@constructor-io/constructorio-connect-cli",
      "pluginName": "@constructor-io/constructorio-connect-cli",
      "pluginType": "core",
      "strict": true,
      "enableJsonFlag": false,
      "isESM": false,
      "relativePath": [
        "dist",
        "commands",
        "refresh-connections.js"
      ]
    },
    "trigger-catalog-sync": {
      "aliases": [],
      "args": {},
      "description": "Triggers a catalog sync for selected connection. \n\nThe script will use the `CONNECT_AUTH_TOKEN` environment variable to authenticate with Constructor.",
      "examples": [
        "$ <%= config.bin %>"
      ],
      "flags": {
        "cloud": {
          "description": "Use the cloud config (connectrc.js) even if a local config (connectrc.local.js) exists",
          "name": "cloud",
          "allowNo": false,
          "type": "boolean"
        }
      },
      "hasDynamicHelp": false,
      "hiddenAliases": [],
      "id": "trigger-catalog-sync",
      "pluginAlias": "@constructor-io/constructorio-connect-cli",
      "pluginName": "@constructor-io/constructorio-connect-cli",
      "pluginType": "core",
      "strict": true,
      "enableJsonFlag": false,
      "isESM": false,
      "relativePath": [
        "dist",
        "commands",
        "trigger-catalog-sync.js"
      ]
    },
    "upgrade": {
      "aliases": [],
      "args": {},
      "description": "Upgrade infrastructure files in an existing Connect CLI repository to match the latest boilerplate.",
      "examples": [
        "<%= config.bin %> <%= command.id %>",
        "<%= config.bin %> <%= command.id %> --engine=ts"
      ],
      "flags": {
        "engine": {
          "description": "The template engine used in this repository.",
          "name": "engine",
          "default": "jsonata",
          "hasDynamicHelp": false,
          "multiple": false,
          "options": [
            "jsonata",
            "js",
            "ts"
          ],
          "type": "option"
        }
      },
      "hasDynamicHelp": false,
      "hiddenAliases": [],
      "id": "upgrade",
      "pluginAlias": "@constructor-io/constructorio-connect-cli",
      "pluginName": "@constructor-io/constructorio-connect-cli",
      "pluginType": "core",
      "strict": true,
      "enableJsonFlag": false,
      "isESM": false,
      "relativePath": [
        "dist",
        "commands",
        "upgrade.js"
      ]
    }
  },
  "version": "1.28.0"
}