By paulyg321
Hi all,
I have an app that I’m creating where I’d like users to be able to signup for digital ocean using forms from my app. After the user is signed up, I’d like to be able to run a script to start up a droplet (under the users account - from a single button press on my web app). After the droplet has been started, I want to run a shell script on the droplet to configure and run another application on the users droplet.
How can I go about doing this, can someone point me in the right direction?
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!
Hi @paulyg321,
For using DigitalOcean’s API in scripts, I’ll recommend using ‘doctl’ it will provide you control over your account. Basically you’ll be able to go about doing everything you mentioned in the question. You can read more upon it here ;
The tutorial shows you basic usage of the doctl service and how you can manage everything with it. It’s up to you to now embed it in your script anyway you want.
Regards, KDSys
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.