{
  "name": "docker-compose",
  "description": "Define and run multi-container applications with Docker",
  "options": [
    {
      "names": [
        "--ansi"
      ],
      "description": "Control when to print ANSI control characters (\"never\"|\"always\"|\"auto\")",
      "args": [
        {
          "name": "ansi",
          "suggestions": [
            "never",
            "always",
            "auto"
          ]
        }
      ]
    },
    {
      "names": [
        "--compatibility"
      ],
      "description": "Run compose in backward compatibility mode"
    },
    {
      "names": [
        "--env-file"
      ],
      "description": "Specify an alternate environment file",
      "args": [
        {
          "name": "env-file",
          "template": "filepaths"
        }
      ]
    },
    {
      "names": [
        "--file",
        "-f"
      ],
      "description": "Compose configuration files",
      "isRepeatable": -1,
      "args": [
        {
          "name": "file",
          "template": "filepaths"
        }
      ]
    },
    {
      "names": [
        "--no-ansi"
      ],
      "description": "Do not print ANSI control characters (DEPRECATED)",
      "hidden": true
    },
    {
      "names": [
        "--profile"
      ],
      "description": "Specify a profile to enable",
      "isRepeatable": -1,
      "args": [
        {
          "name": "profile"
        }
      ]
    },
    {
      "names": [
        "--project-directory"
      ],
      "description": "Specify an alternate working directory (default: the path of the, first specified, Compose file)",
      "args": [
        {
          "name": "project-directory",
          "template": "folders"
        }
      ]
    },
    {
      "names": [
        "--project-name",
        "-p"
      ],
      "description": "Project name",
      "args": [
        {
          "name": "project-name"
        }
      ]
    },
    {
      "names": [
        "--verbose"
      ],
      "description": "Show more output",
      "hidden": true
    },
    {
      "names": [
        "--workdir"
      ],
      "description": "DEPRECATED! USE --project-directory INSTEAD. Specify an alternate working directory (default: the path of the, first specified, Compose file)",
      "hidden": true,
      "args": [
        {
          "name": "workdir"
        }
      ]
    }
  ],
  "subcommands": [
    {
      "name": "build",
      "description": "Build or rebuild services",
      "options": [
        {
          "names": [
            "--build-arg"
          ],
          "description": "Set build-time variables for services",
          "isRepeatable": -1,
          "args": [
            {
              "name": "key=value"
            }
          ]
        },
        {
          "names": [
            "--compress"
          ],
          "description": "Compress the build context using gzip. DEPRECATED",
          "hidden": true
        },
        {
          "names": [
            "--force-rm"
          ],
          "description": "Always remove intermediate containers. DEPRECATED",
          "hidden": true
        },
        {
          "names": [
            "--memory",
            "-m"
          ],
          "description": "Set memory limit for the build container. Not supported on buildkit yet",
          "hidden": true,
          "args": [
            {
              "name": "memory"
            }
          ]
        },
        {
          "names": [
            "--no-cache"
          ],
          "description": "Do not use cache when building the image"
        },
        {
          "names": [
            "--no-rm"
          ],
          "description": "Do not remove intermediate containers after a successful build. DEPRECATED",
          "hidden": true
        },
        {
          "names": [
            "--parallel"
          ],
          "description": "Build images in parallel. DEPRECATED",
          "hidden": true
        },
        {
          "names": [
            "--progress"
          ],
          "description": "Set type of progress output (auto, tty, plain, quiet)",
          "args": [
            {
              "name": "progress",
              "suggestions": [
                "auto",
                "tty",
                "plain",
                "quiet"
              ]
            }
          ]
        },
        {
          "names": [
            "--pull"
          ],
          "description": "Always attempt to pull a newer version of the image"
        },
        {
          "names": [
            "--quiet",
            "-q"
          ],
          "description": "Don't print anything to STDOUT"
        },
        {
          "names": [
            "--ssh"
          ],
          "description": "Set SSH authentications used when building service images. (use 'default' for using your default SSH Agent)",
          "args": [
            {
              "name": "ssh"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "services",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "config",
      "aliases": [
        "convert"
      ],
      "description": "Converts the compose file to platform's canonical format",
      "options": [
        {
          "names": [
            "--format"
          ],
          "description": "Format the output. Values: [yaml | json]",
          "args": [
            {
              "name": "format",
              "suggestions": [
                "yaml",
                "json"
              ]
            }
          ]
        },
        {
          "names": [
            "--hash"
          ],
          "description": "Print the service config hash, one per line",
          "args": [
            {
              "name": "hash"
            }
          ]
        },
        {
          "names": [
            "--images"
          ],
          "description": "Print the image names, one per line"
        },
        {
          "names": [
            "--no-interpolate"
          ],
          "description": "Don't interpolate environment variables"
        },
        {
          "names": [
            "--no-normalize"
          ],
          "description": "Don't normalize compose model"
        },
        {
          "names": [
            "--output",
            "-o"
          ],
          "description": "Save to file (default to stdout)",
          "args": [
            {
              "name": "output",
              "template": "filepaths"
            }
          ]
        },
        {
          "names": [
            "--profiles"
          ],
          "description": "Print the profile names, one per line"
        },
        {
          "names": [
            "--quiet",
            "-q"
          ],
          "description": "Only validate the configuration, don't print anything"
        },
        {
          "names": [
            "--resolve-image-digests"
          ],
          "description": "Pin image tags to digests"
        },
        {
          "names": [
            "--services"
          ],
          "description": "Print the service names, one per line"
        },
        {
          "names": [
            "--volumes"
          ],
          "description": "Print the volume names, one per line"
        }
      ],
      "args": [
        {
          "name": "services",
          "isVariadic": true
        }
      ]
    },
    {
      "name": "cp",
      "description": "Copy files/folders between a service container and the local filesystem",
      "options": [
        {
          "names": [
            "--all"
          ],
          "description": "Copy to all the containers of the service",
          "hidden": true
        },
        {
          "names": [
            "--archive",
            "-a"
          ],
          "description": "Archive mode (copy all uid/gid information)"
        },
        {
          "names": [
            "--follow-link",
            "-L"
          ],
          "description": "Always follow symbol link in SRC_PATH"
        },
        {
          "names": [
            "--index"
          ],
          "description": "Index of the container if there are multiple instances of a service",
          "args": [
            {
              "name": "index"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "source path"
        },
        {
          "name": "dest path"
        }
      ]
    },
    {
      "name": "create",
      "description": "Creates containers for a service",
      "options": [
        {
          "names": [
            "--build"
          ],
          "description": "Build images before starting containers"
        },
        {
          "names": [
            "--force-recreate"
          ],
          "description": "Recreate containers even if their configuration and image haven't changed"
        },
        {
          "names": [
            "--no-build"
          ],
          "description": "Don't build an image, even if it's missing"
        },
        {
          "names": [
            "--no-recreate"
          ],
          "description": "If containers already exist, don't recreate them. Incompatible with --force-recreate"
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "down",
      "description": "Stop and remove containers, networks",
      "options": [
        {
          "names": [
            "--remove-orphans"
          ],
          "description": "Remove containers for services not defined in the Compose file"
        },
        {
          "names": [
            "--rmi"
          ],
          "description": "Remove images used by services. \"local\" remove only images that don't have a custom tag (\"local\"|\"all\")",
          "args": [
            {
              "name": "rmi"
            }
          ]
        },
        {
          "names": [
            "--timeout",
            "-t"
          ],
          "description": "Specify a shutdown timeout in seconds",
          "args": [
            {
              "name": "timeout"
            }
          ]
        },
        {
          "names": [
            "--volumes",
            "-v"
          ],
          "description": "Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers"
        }
      ]
    },
    {
      "name": "events",
      "description": "Receive real time events from containers",
      "options": [
        {
          "names": [
            "--json"
          ],
          "description": "Output events as a stream of json objects"
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "exec",
      "description": "Execute a command in a running container",
      "options": [
        {
          "names": [
            "--detach",
            "-d"
          ],
          "description": "Detached mode: Run command in the background"
        },
        {
          "names": [
            "--env",
            "-e"
          ],
          "description": "Set environment variables",
          "isRepeatable": -1,
          "args": [
            {
              "name": "key=value"
            }
          ]
        },
        {
          "names": [
            "--index"
          ],
          "description": "Index of the container if there are multiple instances of a service [default: 1]",
          "args": [
            {
              "name": "index"
            }
          ]
        },
        {
          "names": [
            "--interactive",
            "-i"
          ],
          "description": "Keep STDIN open even if not attached",
          "hidden": true
        },
        {
          "names": [
            "--no-TTY",
            "-T"
          ],
          "description": "Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY"
        },
        {
          "names": [
            "--privileged"
          ],
          "description": "Give extended privileges to the process"
        },
        {
          "names": [
            "--tty",
            "-t"
          ],
          "description": "Allocate a pseudo-TTY",
          "hidden": true
        },
        {
          "names": [
            "--user",
            "-u"
          ],
          "description": "Run the command as this user",
          "args": [
            {
              "name": "user"
            }
          ]
        },
        {
          "names": [
            "--workdir",
            "-w"
          ],
          "description": "Path to workdir directory for this command",
          "args": [
            {
              "name": "workdir",
              "template": "folders"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "service"
        },
        {
          "name": "command",
          "isVariadic": true,
          "isCommand": true
        }
      ]
    },
    {
      "name": "images",
      "description": "List images used by the created containers",
      "options": [
        {
          "names": [
            "--quiet",
            "-q"
          ],
          "description": "Only display IDs"
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "kill",
      "description": "Force stop service containers",
      "options": [
        {
          "names": [
            "--signal",
            "-s"
          ],
          "description": "SIGNAL to send to the container",
          "args": [
            {
              "name": "signal"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "logs",
      "description": "View output from containers",
      "options": [
        {
          "names": [
            "--follow",
            "-f"
          ],
          "description": "Follow log output"
        },
        {
          "names": [
            "--no-color"
          ],
          "description": "Produce monochrome output"
        },
        {
          "names": [
            "--no-log-prefix"
          ],
          "description": "Don't print prefix in logs"
        },
        {
          "names": [
            "--since"
          ],
          "description": "Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)",
          "args": [
            {
              "name": "since"
            }
          ]
        },
        {
          "names": [
            "--tail"
          ],
          "description": "Number of lines to show from the end of the logs for each container",
          "args": [
            {
              "name": "lines",
              "suggestions": [
                "all"
              ]
            }
          ]
        },
        {
          "names": [
            "--timestamps",
            "-t"
          ],
          "description": "Show timestamps"
        },
        {
          "names": [
            "--until"
          ],
          "description": "Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)",
          "args": [
            {
              "name": "timestamp"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "ls",
      "description": "List running compose projects",
      "options": [
        {
          "names": [
            "--all",
            "-a"
          ],
          "description": "Show all stopped Compose projects"
        },
        {
          "names": [
            "--filter"
          ],
          "description": "Filter output based on conditions provided",
          "args": [
            {
              "name": "filter"
            }
          ]
        },
        {
          "names": [
            "--format"
          ],
          "description": "Format the output. Values: [pretty | json]",
          "args": [
            {
              "name": "format",
              "suggestions": [
                "pretty",
                "json"
              ]
            }
          ]
        },
        {
          "names": [
            "--quiet",
            "-q"
          ],
          "description": "Only display IDs"
        }
      ]
    },
    {
      "name": "pause",
      "description": "Pause services",
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "port",
      "description": "Print the public port for a port binding",
      "options": [
        {
          "names": [
            "--index"
          ],
          "description": "Index of the container if service has multiple replicas",
          "args": [
            {
              "name": "index"
            }
          ]
        },
        {
          "names": [
            "--protocol"
          ],
          "description": "Tcp or udp",
          "args": [
            {
              "name": "protocol",
              "suggestions": [
                "tcp",
                "udp"
              ]
            }
          ]
        }
      ],
      "args": [
        {
          "name": "service"
        },
        {
          "name": "private_port"
        }
      ]
    },
    {
      "name": "ps",
      "description": "List containers",
      "options": [
        {
          "names": [
            "--all",
            "-a"
          ],
          "description": "Show all stopped containers (including those created by the run command)"
        },
        {
          "names": [
            "--filter"
          ],
          "description": "Filter services by a property (supported filters: status)",
          "args": [
            {
              "name": "filter"
            }
          ]
        },
        {
          "names": [
            "--format"
          ],
          "description": "Format the output. Values: [pretty | json]",
          "args": [
            {
              "name": "format",
              "suggestions": [
                "pretty",
                "json"
              ]
            }
          ]
        },
        {
          "names": [
            "--quiet",
            "-q"
          ],
          "description": "Only display IDs"
        },
        {
          "names": [
            "--services"
          ],
          "description": "Display services"
        },
        {
          "names": [
            "--status"
          ],
          "description": "Filter services by status. Values: [paused | restarting | removing | running | dead | created | exited]",
          "isRepeatable": -1,
          "args": [
            {
              "name": "status",
              "suggestions": [
                "paused",
                "restarting",
                "removing",
                "running",
                "dead",
                "created",
                "exited"
              ]
            }
          ]
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "pull",
      "description": "Pull service images",
      "options": [
        {
          "names": [
            "--ignore-pull-failures"
          ],
          "description": "Pull what it can and ignores images with pull failures"
        },
        {
          "names": [
            "--include-deps"
          ],
          "description": "Also pull services declared as dependencies"
        },
        {
          "names": [
            "--no-parallel"
          ],
          "description": "DEPRECATED disable parallel pulling",
          "hidden": true
        },
        {
          "names": [
            "--parallel"
          ],
          "description": "DEPRECATED pull multiple images in parallel",
          "hidden": true
        },
        {
          "names": [
            "--quiet",
            "-q"
          ],
          "description": "Pull without printing progress information"
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "push",
      "description": "Push service images",
      "options": [
        {
          "names": [
            "--ignore-push-failures"
          ],
          "description": "Push what it can and ignores images with push failures"
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "restart",
      "description": "Restart containers",
      "options": [
        {
          "names": [
            "--timeout",
            "-t"
          ],
          "description": "Specify a shutdown timeout in seconds",
          "args": [
            {
              "name": "timeout"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "rm",
      "description": "Removes stopped service containers",
      "options": [
        {
          "names": [
            "--all",
            "-a"
          ],
          "description": "Deprecated - no effect",
          "hidden": true
        },
        {
          "names": [
            "--force",
            "-f"
          ],
          "description": "Don't ask to confirm removal"
        },
        {
          "names": [
            "--stop",
            "-s"
          ],
          "description": "Stop the containers, if required, before removing"
        },
        {
          "names": [
            "--volumes",
            "-v"
          ],
          "description": "Remove any anonymous volumes attached to containers"
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "run",
      "description": "Run a one-off command on a service",
      "options": [
        {
          "names": [
            "--detach",
            "-d"
          ],
          "description": "Run container in background and print container ID"
        },
        {
          "names": [
            "--entrypoint"
          ],
          "description": "Override the entrypoint of the image",
          "args": [
            {
              "name": "entrypoint"
            }
          ]
        },
        {
          "names": [
            "--env",
            "-e"
          ],
          "description": "Set environment variables",
          "isRepeatable": -1,
          "args": [
            {
              "name": "env"
            }
          ]
        },
        {
          "names": [
            "--interactive",
            "-i"
          ],
          "description": "Keep STDIN open even if not attached"
        },
        {
          "names": [
            "--label",
            "-l"
          ],
          "description": "Add or override a label",
          "isRepeatable": -1,
          "args": [
            {
              "name": "label"
            }
          ]
        },
        {
          "names": [
            "--name"
          ],
          "description": "Assign a name to the container",
          "args": [
            {
              "name": "name"
            }
          ]
        },
        {
          "names": [
            "--no-TTY",
            "-T"
          ],
          "description": "Disable pseudo-TTY allocation (default: auto-detected)"
        },
        {
          "names": [
            "--no-deps"
          ],
          "description": "Don't start linked services"
        },
        {
          "names": [
            "--publish",
            "-p"
          ],
          "description": "Publish a container's port(s) to the host",
          "isRepeatable": -1,
          "args": [
            {
              "name": "publish"
            }
          ]
        },
        {
          "names": [
            "--quiet-pull"
          ],
          "description": "Pull without printing progress information"
        },
        {
          "names": [
            "--rm"
          ],
          "description": "Automatically remove the container when it exits"
        },
        {
          "names": [
            "--service-ports"
          ],
          "description": "Run command with the service's ports enabled and mapped to the host"
        },
        {
          "names": [
            "--tty",
            "-t"
          ],
          "description": "Allocate a pseudo-TTY",
          "hidden": true
        },
        {
          "names": [
            "--use-aliases"
          ],
          "description": "Use the service's network useAliases in the network(s) the container connects to"
        },
        {
          "names": [
            "--user",
            "-u"
          ],
          "description": "Run as specified username or uid",
          "args": [
            {
              "name": "user"
            }
          ]
        },
        {
          "names": [
            "--volume",
            "-v"
          ],
          "description": "Bind mount a volume",
          "isRepeatable": -1,
          "args": [
            {
              "name": "volume"
            }
          ]
        },
        {
          "names": [
            "--workdir",
            "-w"
          ],
          "description": "Working directory inside the container",
          "args": [
            {
              "name": "workdir",
              "template": "folders"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "service"
        },
        {
          "name": "command",
          "isCommand": true
        }
      ]
    },
    {
      "name": "start",
      "description": "Start services",
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "stop",
      "description": "Stop services",
      "options": [
        {
          "names": [
            "--timeout",
            "-t"
          ],
          "description": "Specify a shutdown timeout in seconds",
          "args": [
            {
              "name": "timeout"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "top",
      "description": "Display the running processes",
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "unpause",
      "description": "Unpause services",
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "up",
      "description": "Create and start containers",
      "options": [
        {
          "names": [
            "--abort-on-container-exit"
          ],
          "description": "Stops all containers if any container was stopped. Incompatible with -d"
        },
        {
          "names": [
            "--always-recreate-deps"
          ],
          "description": "Recreate dependent containers. Incompatible with --no-recreate"
        },
        {
          "names": [
            "--attach"
          ],
          "description": "Attach to service output",
          "isRepeatable": -1,
          "args": [
            {
              "name": "attach"
            }
          ]
        },
        {
          "names": [
            "--attach-dependencies"
          ],
          "description": "Attach to dependent containers"
        },
        {
          "names": [
            "--build"
          ],
          "description": "Build images before starting containers"
        },
        {
          "names": [
            "--detach",
            "-d"
          ],
          "description": "Detached mode: Run containers in the background"
        },
        {
          "names": [
            "--exit-code-from"
          ],
          "description": "Return the exit code of the selected service container. Implies --abort-on-container-exit",
          "args": [
            {
              "name": "exit-code-from"
            }
          ]
        },
        {
          "names": [
            "--force-recreate"
          ],
          "description": "Recreate containers even if their configuration and image haven't changed"
        },
        {
          "names": [
            "--no-build"
          ],
          "description": "Don't build an image, even if it's missing"
        },
        {
          "names": [
            "--no-color"
          ],
          "description": "Produce monochrome output"
        },
        {
          "names": [
            "--no-deps"
          ],
          "description": "Don't start linked services"
        },
        {
          "names": [
            "--no-log-prefix"
          ],
          "description": "Don't print prefix in logs"
        },
        {
          "names": [
            "--no-recreate"
          ],
          "description": "If containers already exist, don't recreate them. Incompatible with --force-recreate"
        },
        {
          "names": [
            "--no-start"
          ],
          "description": "Don't start the services after creating them"
        },
        {
          "names": [
            "--quiet-pull"
          ],
          "description": "Pull without printing progress information"
        },
        {
          "names": [
            "--remove-orphans"
          ],
          "description": "Remove containers for services not defined in the Compose file"
        },
        {
          "names": [
            "--renew-anon-volumes",
            "-V"
          ],
          "description": "Recreate anonymous volumes instead of retrieving data from the previous containers"
        },
        {
          "names": [
            "--scale"
          ],
          "description": "Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present",
          "isRepeatable": -1,
          "args": [
            {
              "name": "scale"
            }
          ]
        },
        {
          "names": [
            "--timeout",
            "-t"
          ],
          "description": "Use this timeout in seconds for container shutdown when attached or when containers are already running",
          "args": [
            {
              "name": "timeout"
            }
          ]
        },
        {
          "names": [
            "--wait"
          ],
          "description": "Wait for services to be running|healthy. Implies detached mode"
        }
      ],
      "args": [
        {
          "name": "service",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "version",
      "description": "Show the Docker Compose version information",
      "options": [
        {
          "names": [
            "--format",
            "-f"
          ],
          "description": "Format the output. Values: [pretty | json]. (Default: pretty)",
          "args": [
            {
              "name": "format",
              "suggestions": [
                "pretty",
                "json"
              ]
            }
          ]
        },
        {
          "names": [
            "--short"
          ],
          "description": "Shows only Compose's version number"
        }
      ]
    }
  ]
}
