Node SDK and CLI tool for Digital Ocean.
Install the global CLI via:
yarn global add digital-ocean-cli
This will make the docli
tool available on your machine.
Install digital-ocean
using yarn
:
yarn add digital-ocean
Use it within code:
import DigitalOcean from 'digital-ocean';
const run = async () => {
const client = new DigitalOcean({token: '<YOUR API TOKEN>'});
const droplet = await client.createDroplet({
// Options are passed here.
});
console.log(droplet);
};
run();
Package | Version | Description |
---|---|---|
digital-ocean |
Node SDK for Digital Ocean | |
digital-ocean-cli |
CLI for Digital Ocean |
If you have any ideas on how this module could be better, create an Issue or submit a PR.