doctl command is missing required arguments

Posted October 16, 2020 687 views
DigitalOcean API and CLI (doctl)

When trying to run

doctl compute droplet-action power-off <droplet id> --wait true;

I get:
Error: (droplet-action.power-off) command is missing required arguments

Issue is not related to “power-off” action, it also happens on “power-on” and “snapshot”
Without “–wait true” it runs as expected;

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi there @netomarchiori,

I don’t think that the --wait is a valid argument. Can you share the resource where you got that flag from?

You can see the available arguments for the doplet-action command here:

You could use the doctl compute action wait <action-id> command instead. The command blocks the current thread, returning when an action completes.


  • Hi there @netomarchiori,

    Ah yes, I see.

    What you need to do is just specify just the --wait argument without adding true at the end. So the command will look like this:

    doctl compute droplet-action power-off droplet_id --wait

    Hope that this helps!