109 lines
5.0 KiB
Plaintext
109 lines
5.0 KiB
Plaintext
Deploy and manage applications on the DCOS
|
|
|
|
Usage:
|
|
dcos marathon --config-schema
|
|
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 task list [--json <app-id>]
|
|
dcos marathon task show <task-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>...]
|
|
|
|
Options:
|
|
-h, --help Show this screen
|
|
|
|
--info Show a short description of this
|
|
subcommand
|
|
|
|
--json Print json-formatted tasks
|
|
|
|
--version Show version
|
|
|
|
--force This flag disable checks in Marathon
|
|
during update operations
|
|
|
|
--app-version=<app-version> This flag specifies the application
|
|
version to use for the command. The
|
|
application version (<app-version>) can be
|
|
specified as an absolute value or as
|
|
relative value. Absolute version 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
|
|
|
|
--group-version=<group-version> This flag specifies the group version to
|
|
use for the command. The group version
|
|
(<group-version>) can be specified as an
|
|
absolute value or as relative value.
|
|
Absolute version 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
|
|
|
|
--config-schema Show the configuration schema for the
|
|
Marathon subcommand
|
|
|
|
--max-count=<max-count> Maximum number of entries to try to fetch
|
|
and return
|
|
|
|
--interval=<interval> Number of seconds to wait between actions
|
|
|
|
--scale Scale the app down after performing the
|
|
the operation.
|
|
|
|
--host=<host> The host name to isolate your command to
|
|
|
|
|
|
Positional Arguments:
|
|
<app-id> The application id
|
|
|
|
<app-resource> Path to a file or HTTP(S) URL containing
|
|
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 containing
|
|
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 to start
|
|
|
|
<properties> Must be of the format <key>=<value>. E.g.
|
|
cpus=2.0. If omitted, properties are read from
|
|
stdin.
|
|
|
|
<task-id> The task id
|
|
|
|
<scale-factor> The factor to scale an application group by
|