npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

doclt

v2.0.0

Published

Digital Ocean Command Line Tool

Downloads

17

Readme

doclt - Digital Ocean Command Line Tool

npm npm npm GitHub pull requests GitHub issues

GitHub watchers GitHub forks

doclt is a command line tool for interacting with Digital Ocean. It presents information in Terminal in a neat, tidy, and visually appealing way.

Installation

doclt is built with node.js and released on npm. It should work with any version of node.js above 4.3.2. Install it via npm.

npm install -g doclt

Simple as that.

If you want to build from source, you can clone this GitHub repository and create a symlink to doclt.js.

Examples

Listing droplets:

$ doclt droplets list --no-color
┌────────────┬──────────────┬────────────────┬────────┐
│ Droplet ID │ Droplet Name │ IPv4           │ Status │
├────────────┼──────────────┼────────────────┼────────┤
│ 13280097   │ omgimanerd   │ 45.55.193.57   │ active │
├────────────┼──────────────┼────────────────┼────────┤
│ 32055059   │ eccfinancing │ 138.197.28.147 │ active │
├────────────┼──────────────┼────────────────┼────────┤
│ 37354192   │ test         │ 198.199.67.203 │ off    │
└────────────┴──────────────┴────────────────┴────────┘

Listing image types:

$ doclt images list --distribution --no-color
┌──────────┬─────────────────────────────────┬──────────────┐
│ ID       │ Distribution (PUBLIC) (PRIVATE) │ Minimum Size │
├──────────┼─────────────────────────────────┼──────────────┤
│ 20625985 │ CentOS 5.11 x32                 │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 20625979 │ CentOS 5.11 x64                 │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 22236119 │ CentOS 6.8 x32                  │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 22099398 │ CoreOS 1235.6.0 (stable)        │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 22100001 │ CoreOS 1248.4.0 (beta)          │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 21419789 │ Debian 7.11 x32                 │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 21419458 │ Debian 7.11 x64                 │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 22235142 │ Debian 8.7 x32                  │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 22235108 │ Debian 8.7 x64                  │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 18027532 │ Fedora 24 x64                   │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 21190386 │ Fedora 25 x64                   │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 19103923 │ FreeBSD 10.3                    │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 18818640 │ FreeBSD 10.3 zfs                │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 20199958 │ FreeBSD 11.0                    │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 20199928 │ FreeBSD 11.0 zfs                │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 21399414 │ Ubuntu 14.04.5 x32              │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 21399384 │ Ubuntu 14.04.5 x64              │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 21669479 │ Ubuntu 16.04.1 x32              │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 21669205 │ Ubuntu 16.04.1 x64              │ 20 GB        │
├──────────┼─────────────────────────────────┼──────────────┤
│ 21385718 │ Ubuntu 16.10 x32                │ 20 GB        │
└──────────┴─────────────────────────────────┴──────────────┘

Usage

Before using doclt, you must set your Digital Ocean auth token. Get one from Digital Ocean and run:

doclt token <YOUR TOKEN HERE>
# Example: doclt token abcdefghijk1234567890

Every command is documented by the tool itself. Run doclt <command> --help for details about using any command.

Usage:
  doclt.js <command> [arguments..] [options..]

Commands:
  account        Display account information
                                          [aliases: acc]
  certificates   Create, delete, and manage SSL certificates
                                          [aliases: certificate, cert, certs]
  domains        Create, delete, and manage domains                             
                                          [aliases: domain]
  droplets       Create, delete, and manage droplets                         
                                          [aliases: droplet]
  floating-ips   Create, delete, and manage floating IPs
                                          [aliases: floating-ip, fip, ip]
  images         Create, delete, and manage images
                                          [aliases: image]
  regions        Lists the available regions
                                          [aliases: region]
  sizes          Lists the available droplet sizes
                                          [aliases: size]
  snapshots      Create, delete, and manage snapshots
                                          [aliases: snapshot]
  ssh            Create, delete, and manage SSH public keys
  tags           Create, delete, and manage tags
                                          [aliases: tag]
  token <token>  Set the DigitalOcean auth token
                                          [aliases: auth, authenticate]
  volumes        Create, delete, and manage volumes
                                          [aliases: volume, block, blockStorage]

Options:
  --help      Show help                                  [boolean]
  --dev       Run in development mode                    [boolean]
  --json      Output results as JSON                     [boolean]
  --no-color  Disable colors                             [boolean]
  --color     Invoking this does nothing                 [boolean]
  --version   Show version number                        [boolean]

See 'doclt.js <command> --help' for more info.

Contributing

Open issues to discuss any feature requests or changes that you would like to make. Fork this repository and push changes to your own fork. Then send me a pull request.

git clone [email protected]/your-username/doclt
cd doclt
git checkout -b feature-name
# Make changes
git commit
git push origin feature-name

After the pull request is accepted, you can fetch those changes back to your master branch.

git remote add upstream [email protected]:omgimanerd/doclt
git pull upstream master

Creators

Libraries.io for GitHub Twitter Follow GitHub followers