143 lines
5.1 KiB
Plaintext
143 lines
5.1 KiB
Plaintext
Description:
|
|
Deploy and manage applications to DCOS.
|
|
|
|
Usage:
|
|
dcos marathon --config-schema
|
|
dcos marathon --help
|
|
dcos marathon --info
|
|
dcos marathon about
|
|
dcos marathon app add [<app-resource>]
|
|
dcos marathon app list [--json]
|
|
dcos marathon app remove [--force] <app-id>
|
|
dcos marathon app restart [--force] <app-id>
|
|
dcos marathon app show [--app-version=<app-version>] <app-id>
|
|
dcos marathon app start [--force] <app-id> [<instances>]
|
|
dcos marathon app stop [--force] <app-id>
|
|
dcos marathon app kill [--scale] [--host=<host>] <app-id>
|
|
dcos marathon app update [--force] <app-id> [<properties>...]
|
|
dcos marathon app version list [--max-count=<max-count>] <app-id>
|
|
dcos marathon deployment list [--json <app-id>]
|
|
dcos marathon deployment rollback <deployment-id>
|
|
dcos marathon deployment stop <deployment-id>
|
|
dcos marathon deployment watch [--max-count=<max-count>]
|
|
[--interval=<interval>] <deployment-id>
|
|
dcos marathon group add [<group-resource>]
|
|
dcos marathon group list [--json]
|
|
dcos marathon group scale [--force] <group-id> <scale-factor>
|
|
dcos marathon group show [--group-version=<group-version>] <group-id>
|
|
dcos marathon group remove [--force] <group-id>
|
|
dcos marathon group update [--force] <group-id> [<properties>...]
|
|
dcos marathon task list [--json <app-id>]
|
|
dcos marathon task stop [--wipe] <task-id>
|
|
dcos marathon task show <task-id>
|
|
|
|
Commands:
|
|
about
|
|
Print info.json for DCOS Marathon.
|
|
app add
|
|
Add an application.
|
|
app list
|
|
List the installed applications.
|
|
app remove
|
|
Remove an application.
|
|
app restart
|
|
Restart an application.
|
|
app show
|
|
Show the `marathon.json` for an application.
|
|
app start
|
|
Start an application.
|
|
app stop
|
|
Stop an application.
|
|
app kill
|
|
Kill a running application instance.
|
|
app update
|
|
Update an application.
|
|
app version list
|
|
List the version history of an application.
|
|
deployment list
|
|
Print a list of currently deployed applications.
|
|
deployment rollback
|
|
Remove a deployed application.
|
|
deployment stop
|
|
Cancel the in-progress deployment of an application.
|
|
deployment watch
|
|
Monitor deployments.
|
|
group add
|
|
Create a new group.
|
|
group list
|
|
Print the list of groups.
|
|
group scale
|
|
Scale a group.
|
|
group show
|
|
Print a detailed list of groups.
|
|
group remove
|
|
Remove a group.
|
|
group update
|
|
Update a group.
|
|
task list
|
|
List all tasks.
|
|
task stop
|
|
Stop a task. Wipe persistent data if `--wipe` is set.
|
|
task show
|
|
List a specific task.
|
|
|
|
Options:
|
|
--app-version=<app-version>
|
|
The version of the application to use. It can be specified as an
|
|
absolute or relative value. Absolute values must be in ISO8601 date
|
|
format. Relative values must be specified as a negative integer and they
|
|
represent the version from the currently deployed application definition.
|
|
--config-schema
|
|
Show the configuration schema for the Marathon subcommand.
|
|
--force
|
|
Disable checks in Marathon during updates.
|
|
--group-version=<group-version>
|
|
The group version to use for the command. It can be specified as an
|
|
absolute or relative value. Absolute values must be in ISO8601 date
|
|
format. Relative values must be specified as a negative integer and they
|
|
represent the version from the currently deployed group definition.
|
|
-h, --help
|
|
Print usage.
|
|
--host=<host>
|
|
The hostname that is running app.
|
|
--info
|
|
Print a short description of this subcommand.
|
|
--interval=<interval>
|
|
Number of seconds to wait between actions.
|
|
--json
|
|
Print JSON-formatted list of tasks.
|
|
--max-count=<max-count>
|
|
Maximum number of entries to fetch and return.
|
|
--scale
|
|
Scale the app down after performing the the operation.
|
|
--version
|
|
Print version information.
|
|
|
|
Positional Arguments:
|
|
<app-id>
|
|
The application ID.
|
|
<app-resource>
|
|
Path to a file or HTTP(S) URL that contains the app's JSON definition.
|
|
If omitted, the definition is read from stdin. For a detailed
|
|
description see
|
|
https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps.
|
|
<deployment-id>
|
|
The deployment ID.
|
|
<group-id>
|
|
The group ID.
|
|
<group-resource>
|
|
Path to a file or HTTP(S) URL that contains the group's JSON definition.
|
|
If omitted, the definition is read from stdin. For a detailed
|
|
description see
|
|
https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-groups.
|
|
<instances>
|
|
The number of instances.
|
|
<properties>
|
|
List of space-separated config.json properties to update. The list must
|
|
be formatted as <key>=<value>. For example, `cpus=2.0 mem=308`. If
|
|
omitted, properties are read from stdin.
|
|
<task-id>
|
|
The task ID.
|
|
<scale-factor>
|
|
The factor to scale an application group by.
|