Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marathon app update documentation misleading (requires file) #2409

Closed
ryansydnor opened this issue Oct 12, 2015 · 2 comments
Closed

marathon app update documentation misleading (requires file) #2409

ryansydnor opened this issue Oct 12, 2015 · 2 comments

Comments

@ryansydnor
Copy link

The cli documentation states:

dcos marathon app update [--force] [...]

However, the update command cannot simply accept a json string as indicated but rather requires piping to it.

For example,

dcos marathon app update basic-0 '{"instances":100}' will fail.

These will succeed:

echo '{"instances" : 100}' | dcos marathon app update basic-0
dcos marathon app update basic-0 < config.json

@aldipower
Copy link
Contributor

Hi @SL4YT1M3 !

This seems to be related to the dcos-cli and not to Marathon itself.

Could you post your issue in this repository again?

Thank you very much.

@mwasn
Copy link

mwasn commented Oct 13, 2015

@SL4YT1M3

This syntax works without piping:
dcos marathon app update --force basic-0 instances=5

See https://docs.mesosphere.com/using/cli/marathonsyntax/ for more examples.

@mesosphere mesosphere locked and limited conversation to collaborators Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants