{
  "id": "commercelayer",
  "name": "Commerce Layer CLI",
  "homepage": "https://github.com/commercelayer/commercelayer-cli",
  "description": "The official Commerce Layer CLI which helps you to manage your Commerce Layer applications right from the terminal.",
  "icon": "https://commercelayer.io/favicon.svg",
  "executables": [
    "commercelayer",
    "clayer"
  ],
  "dotfiles": {
    "paths": [],
    "exclude": [],
    "secret": [
      "~/.config/@commercelayer/cli/applications/",
      "%LOCALAPPDATA%/@commercelayer/cli/applications/"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Commerce Layer CLI",
    "description": "List the logged-in CLI applications. Login (applications:add) takes a client secret and is left out, as are the plugin commands.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "applications"
        ],
        "label": "List applications",
        "description": "Show the logged-in applications, optionally filtered.",
        "source": [
          {
            "id": "docs",
            "kind": "help",
            "url": "https://raw.githubusercontent.com/commercelayer/commercelayer-cli/HEAD/packages/cli/docs/applications.md",
            "revision": "2026-10-27",
            "evidence": "$ commercelayer applications [-k integration|sales_channel|user] [--live | -m test|live] [-a <value> | --id\n<value>] [-A core|provisioning | -o <value>] [-S]\n-A, --api=<option>          specific API application\n<options: core|provisioning>\n-S, --sort                  sort applications by Organization and Application name\n-a, --alias=<value>         the alias associated to the application\n-k, --kind=<option>         application kind\n<options: integration|sales_channel|user>\n-m, --mode=<option>         execution mode\n<options: test|live>\n-o, --organization=<value>  organization slug\n"
          }
        ],
        "field": [
          {
            "id": "kind",
            "label": "Application kind",
            "type": "enum",
            "option": [
              "--kind",
              "-k"
            ],
            "choices": [
              {
                "value": "integration",
                "label": "integration"
              },
              {
                "value": "sales_channel",
                "label": "sales channel"
              },
              {
                "value": "user",
                "label": "user"
              }
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "mode",
            "label": "Mode",
            "type": "enum",
            "option": [
              "--mode",
              "-m"
            ],
            "choices": [
              {
                "value": "test",
                "label": "test"
              },
              {
                "value": "live",
                "label": "live"
              }
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "api",
            "label": "API",
            "type": "enum",
            "option": [
              "--api",
              "-A"
            ],
            "choices": [
              {
                "value": "core",
                "label": "core"
              },
              {
                "value": "provisioning",
                "label": "provisioning"
              }
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "organization",
            "label": "Organization slug",
            "type": "string",
            "option": [
              "--organization",
              "-o"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "alias",
            "label": "Application alias",
            "type": "string",
            "option": [
              "--alias",
              "-a"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "sort",
            "label": "Sort by organization and name",
            "type": "boolean",
            "option": [
              "--sort",
              "-S"
            ],
            "sources": [
              "docs"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List applications",
            "fields": [
              "kind",
              "mode",
              "api",
              "organization",
              "alias",
              "sort"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "kind",
              "mode",
              "organization",
              "alias",
              "sort"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "api"
            ]
          }
        ]
      }
    ]
  }
}
