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;
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
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:
https://www.digitalocean.com/docs/apis-clis/doctl/reference/compute/droplet-action/
You could use the doctl compute action wait <action-id> command instead. The command blocks the current thread, returning when an action completes.
https://www.digitalocean.com/docs/apis-clis/doctl/reference/compute/action/wait/
Regards, Bobby
Hello @bobbyiliev !
Got the --wait flag
from the docs:
https://www.digitalocean.com/docs/apis-clis/doctl/reference/compute/droplet-action/power-off/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.