Socket
Socket
Sign inDemoInstall

dow

Package Overview
Dependencies
93
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dow

CLI to Digital Ocean API


Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Install size
8.95 MB
Created
Weekly downloads
 

Readme

Source

##Digital Ocean Wrench

Complete CLI to the Digital Ocean API

###Installation

npm install -g dow

dow will look for a DIGITALOCEAN_ACCESS_TOKEN environment variable. You can create one here, and surface it by adding the following to your .profile/.bash_profile/etc.:

export DIGITALOCEAN_ACCESS_TOKEN="<your-access-token>"

If you really want, you can additionally pass your token via the --token flag (see special flags). Read here about how to keep such commands out of your history.

###Usage

For now, the tool will pretty much explain how to use it. (Methods map pretty simply to the official documentation.) Top-level lists categories:

$ dow

usage: dow <command>

where <command> is one of:

  actions
  domains
  domain-records
  droplets
  images
  ssh-keys
  regions
  sizes
  floating-ips

Categories list methods:

$ dow images

usage: dow images <method>

where <method> is one of:

list
get-by-id
get-by-slug
list-actions
update
delete
transfer
convert-to-snapshot
get-action

And methods explain themselves when misused:

$ dow images get-by-slug

usage: dow images get-by-slug <image-id>

or

$ dow droplet create

usage: dow droplets create 
  --name=<value> 
  --region=<value> 
  --size=<value> 
  --image=<value> 
  [--ssh_keys=<value-1>,<value-2>,...] 
  [--backups=<value>] 
  [--ipv6=<value>] 
  [--private_networking=<value>] 
  [--user_data=<value>]

Output tries to be common sense, but log is far from complete. You can use --raw to get just the JSON response. The JSON combined with a command-line JSON manipulator like json give you plenty of flexibility. See the cookbook for some examples.

###Special flags

Special FlagExplanation
--rawOnly write out Digital Ocean's JSON response
--token=<token>Manually provide access token
--no-waitDo not wait for actions to move out of 'in-progress' status or for droplets to move out of 'new' status. Without --no-wait, dow will poll new actions and droplets until they reach a resolution.
--no-spinDo not show a spinner
--page=<page #>Request an individual page of results (useful for actions + images, and maybe more)
--forceSkip confirmation of DELETE methods

FAQs

Last updated on 19 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc