Report this

What is the reason for this report?

what is the exact doctl command to create a droplet of given specification

Posted on September 10, 2019

doctl compute droplet create webserver01 region banglore image ubuntu-18.04-x64 --size1gb



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!

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.

Hello,

You can check this article on DigitalOcean website and see how the doctl is used:

https://www.digitalocean.com/community/tutorials/how-to-use-doctl-the-official-digitalocean-command-line-client

This is an example for creation of droplets:

For example, the following command creates a 64-bit Debian 8 Droplet named test with 1GB of memory, an SSH key, and backups enabled.

doctl compute droplet create test --size 1gb --image debian-8-x64 --region nyc1 --ssh-keys 4d:23:e6:e4:8c:17:d2:cf:89:47:36:b5:c7:33:40:4e --enable-backups

You can modify it to match your needs, e.g using Ubuntu and region Banglore:

doctl compute droplet create webserver01 --size 1gb --image ubuntu-18.04-x64 --region banglore

Let me know how it goes.

Alex

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.