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

entro-vault

v1.1.4

Published

A CLI to handle our vault infrastructure

Downloads

2

Readme

entro-vault

A CLI to assist environment management using HashiCorp Vault and SSH tunnels for access.

oclif

Getting Started

In order to use this tool, you'll first need to install vault. Follow the instructions supplied by HashiCorp here https://developer.hashicorp.com/vault/tutorials/getting-started/getting-started-install#install-vault.

You'll also need ssh installed and your RSA key has to be added to the server. Please speak to your system administrator if your SSH key has not been added yet.

Finally, a user on Vault needs to be created with you and you need to be associated with the correct policies to gain access to the environment variables you require. Please speak to your system administrator if you have not been added to Vault yet.

Quick Installation

npm install -g entro-vault

Full Installation

In order to provide this CLI to all users, we'll want to install it from the binaries provided. Download the .tar.gz file from the releases page.

Then run the following to install:

tar -xvf entro-vault-<version>.tar.gz
sudo rm -rf /usr/local/src/entro-vault
sudo rm -rf /usr/local/bin/entro-vault
sudo mv entro-vault /usr/local/src/entro-vault
sudo ln -s /usr/local/src/entro-vault/bin/entro-vault /usr/local/bin/entro-vault

Usage

$ npm install -g entro-vault
$ entro-vault COMMAND
running command...
$ entro-vault (--version)
entro-vault/1.1.4 linux-x64 node-v16.15.0
$ entro-vault --help [COMMAND]
USAGE
  $ entro-vault COMMAND
...

Commands

entro-vault connect

Connect to the server and begin a reverse tunnel

USAGE
  $ entro-vault connect -h <value> -u <value> [-p <value>] [-v <value>] [-l <value>]

FLAGS
  -h, --host=<value>        (required) The IP address or hostname to connect to via SSH
  -l, --listenPort=<value>  [default: 33233] The port to listen on when the tunnel is created
  -p, --port=<value>        [default: 22] The port to connect to via SSH
  -u, --username=<value>    (required) The username to use when connecting via SSH
  -v, --vaultPort=<value>   [default: 8200] The port to connect to the Vault server

DESCRIPTION
  Connect to the server and begin a reverse tunnel

EXAMPLES
  $ entro-vault connect --host=vault.example.com --username=example_user --port=2222

See code: dist/commands/connect.ts

entro-vault disconnect

Disconnect from the server and stop the reverse tunnel

USAGE
  $ entro-vault disconnect

DESCRIPTION
  Disconnect from the server and stop the reverse tunnel

EXAMPLES
  $ entro-vault disconnect

See code: dist/commands/disconnect.ts

entro-vault env download PATH

Download an environment file from the Vault server

USAGE
  $ entro-vault env download [PATH] [-o <value>] [-h <value>]

ARGUMENTS
  PATH  The path to the env that we want to download

FLAGS
  -h, --vault=<value>   [default: http://localhost:33233] The hostname and path of the Vault server
  -o, --output=<value>  [default: ./.env] The path to save the environment file to

DESCRIPTION
  Download an environment file from the Vault server

EXAMPLES
  $ entro-vault env download product:development/backend --output=devops/dev/backend/.env

entro-vault env upload PATH

Upload the contents of an environment file to the Vault server

USAGE
  $ entro-vault env upload [PATH] -p <value> [-h <value>] [-y]

ARGUMENTS
  PATH  The path to the env that we want to upload

FLAGS
  -h, --vault=<value>        [default: http://localhost:33233] The hostname and path of the Vault server
  -p, --secret-path=<value>  (required) The path to where the env should be stored on Vault
  -y, --yes                  Automatically confirm that the env variables can be overwritten

DESCRIPTION
  Upload the contents of an environment file to the Vault server

EXAMPLES
  $ entro-vault env upload --secret-path=product:development/backend --yes devops/dev/backend/.env

entro-vault help [COMMAND]

Display help for entro-vault.

USAGE
  $ entro-vault help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for entro-vault.

See code: @oclif/plugin-help

entro-vault wait

Wait until the connection has been opened before continuing

USAGE
  $ entro-vault wait [-p <value>] [-t <value>]

FLAGS
  -p, --port=<value>     [default: 33233] The port that the tunnel is listening on
  -t, --timeout=<value>  [default: 30] The number of seconds to wait before timing out and returning an error exit code

DESCRIPTION
  Wait until the connection has been opened before continuing

EXAMPLES
  $ entro-vault wait

See code: dist/commands/wait.ts