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

dnsimple-cli

v0.3.2

Published

DNSimple Command Line tool

Downloads

50

Readme

DNSimple CLI for Windows, Mac and Linux

NPM version Build Status License

This project provides a cross-platform command line interface for DNSimple. Specifically, it uses the DNSimple REST API via nodejs-dnsimple and its associated npm package dnsimple.

This project's command line interface is based on the azure-cli, although its features and functionality are entirely different and not related to azure whatsoever.

Installation

The release on npm is the latest stable version:

npm install -g dnsimple-cli

The code on Github is the most recent version, but can be unstable:

npm install anderly/dnsimple-cli

dnsimple cli on Ubuntu

If you want to run dnsimple cli on Ubuntu, then you should install nodejs-legacy instead of nodejs. For more information please check the following links:

Please perform the installation steps in following order:

sudo apt-get install nodejs-legacy
sudo apt-get install npm
npm install -g dnsimple-cli

Download Source Code

To get the source code of the SDK via git just type:

git clone https://github.com/anderly/dnsimple-cli.git
cd ./dnsimple-cli
npm install

Usage

Just type dnsimple or dns at a command prompt to get started and see available commands. Please see the command reference and wiki for more details.

user@host:~$ dnsimple
info:         _           _                 _      
info:        | |         (_)               | |     
info:      __| |_ __  ___ _ _ __ ___  _ __ | | ___ 
info:     / _` | '_ \/ __| | '_ ` _ \| '_ \| |/ _ \
info:    | (_| | | | \__ \ | | | | | | |_) | |  __/
info:     \__,_|_| |_|___/_|_| |_| |_| .__/|_|\___|
info:                                | |           
info:                                |_|           
info:    
info:    DNSimple: We make DNS simple.
info:    
info:    Tool version 0.3.0
help:    
help:    Display help for a given command
help:      help [options] [command]
help:    
help:    Log in to a DNSimple account.
help:      login [options]
help:    
help:    Log out from DNSimple.
help:      logout [options] [username]
help:    
help:    Open the DNSimple portal in a browser
help:      portal [options]
help:    
help:    Commands:
help:      account        Commands to manage your account information
help:      config         Commands to manage your local settings
help:      domain         Commands to manage domains
help:      contact        Commands to manage your account contacts
help:      service        Commands to manage your domain services
help:      template       Commands to manage dns record templates
help:      user           Commands to manage your users
help:      subscription   Commands to manage account subscriptions
help:      price          Commands to view domain pricing
help:    
help:    Options:
help:      -h, --help     output usage information
help:      -v, --version  output the application version

Authentication

Authentication by email + password and email + token are both supported. If you authenticate using email + password, your account api token is retrieved and used for all subsequent calls. All credentials are securely stored in OS-specific secure credential stores such as OS X Keychain or Windows Credential Manager.

The DNSimple sandbox environment is supported in addition to production.

Password Authentication

# This will prompt for your password in the console
dnsimple login -u <your dnsimple account email address>

or

# Specifying the -e --environment parameter allows you to login to the Sanbox enivonrment. 
# Production is the default.
dnsimple login -u <your dnsimple account email address> -e Sandbox

Token Authentication

dnsimple login -u <your dnsimple account email address> -t <your dnsimple account api token>

Commands

Once authenticated, you can begin using the following top-level command categories:

# Command Categories:
account        Commands to manage your account information
domain         Commands to manage domains
contact        Commands to manage your account contacts
service        Commands to manage your domain services
template       Commands to manage dns record templates
user           Commands to manage your users
subscription   Commands to manage account subscriptions
price          Commands to view domain pricing

Please see the command reference and wiki for more details.

Setting up Fiddler for CLI

You need to set the following environment variables to capture the HTTP traffic generated from the execution of dnsimple cli commands

set NODE_TLS_REJECT_UNAUTHORIZED=0
set HTTPS_PROXY=http://127.0.0.1:8888

Learn More

Please see the command reference and wiki for details and examples of all commands.

For more information on the DNSimple REST API, please see the DNSimple API Documentation.

Contribute Code or Provide Feedback

If you would like to contribute to this project please fork the repo and submit a PR with any contributions.

If you encounter any bugs with the library please file an issue in the Issues section of the project.