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

ssm-cli

v1.4.0

Published

Skydev serect management CLI

Downloads

132

Readme

Skydev Secret Management

Skydev Secret Management CLI (ssm-cli) is a command-line interface tool for managing project environments and secrets.

Table of Contents

Installation

You can install the CLI using npm for your project:

npm install ssm-cli

but we recommend you to install it globally:

npm install -g ssm-cli

Prerequisites

  • SSM system have linked to your Gitlab repository, so you need to have a Gitlab account and a project on Gitlab.
  • You have installed and configured Git on your local machine.

In the future, we will support more Git providers such as Github, Bitbucket,...

Usage

After installation, you can use the ssm-cli command in your terminal.

ssm-cli [command] [options]

Example

# Prerequisites: Your project have version controls (GIT) to a Gitlab repository

# Private key must be added before you login. Please set it using 'ssm-cli config set --private-key <key>'. Short of --private-key is -pk
# Get key from https://web-ssm.skydev.vn/generate-private-key
ssm-cli config set -pk <private-key>

# Login to the Skydev Secret Management system
ssm-cli login

# Sync repository from Gitlab to SSM Registry
ssm-cli sync

# Initialize a repository by repo-name (default is current repository, the folder stores .env file)
ssm-cli init .

# Short command: ssm-cli init --sync .

# Push environment variables (default is develop)
ssm-cli push -m "commit message"

# Pull environment variables (default is develop)
ssm-cli pull

Commands

config Get and change local configurations CLI.

ssm-cli config get
ssm-cli config set <key> <value>
  • --private-key <value> Set private key for encrypting access token which stored in your machine

login Login to the Skydev Secret Management system.

ssm-cli login

sync Synchronize repository from Gitlab to SSM Registry.

ssm-cli sync

init Initialize a repository by pathname.

ssm-cli init [option] <working-dir>
  • -n, --name <repo-name> The pathname of the repository to sync. If not specified, the current repository (GIT) will be used. I can access this website to get repo-name Skydev Secret Management
  • working-dir The directory will include .env file. Default is . (Current directory)
  • --sync Sync repository from Gitlab to SSM Registry

pull Pull environment variables.

ssm-cli pull [option]
  • -f, --force Force pull env

  • -d, --develop Pull env Develop (default)

  • -p, --production Pull env Production

  • -s, --stagding Pull env Stagding

  • -c, --cicd Pull env CICD

push Push environment variables.

ssm-cli push -m "commit message" [option]
  • -d, --develop Push env Develop (default)
  • -p, --production Push env Production
  • -s, --stagding Push env Stagding
  • -c, --cicd Push env CICD

head Show the current version of environment variables

ssm-cli head

log Log the history of the changes of environment variables

ssm-cli log
  • --oneline Show in one line

revert Revert to any previous version of environment variables

ssm-cli revert <version>

Contributors