ssm-cli v1.4.0
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-clibut we recommend you to install it globally:
npm install -g ssm-cliPrerequisites
- 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 pullCommands
config
Get and change local configurations CLI.
ssm-cli config getssm-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 loginsync
Synchronize repository from Gitlab to SSM Registry.
ssm-cli syncinit
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 Managementworking-dirThe directory will include .env file. Default is.(Current directory)--syncSync repository from Gitlab to SSM Registry
pull
Pull environment variables.
ssm-cli pull [option]-f, --forceForce pull env-d, --developPull env Develop (default)-p, --productionPull env Production-s, --stagdingPull env Stagding-c, --cicdPull env CICD
push
Push environment variables.
ssm-cli push -m "commit message" [option]-d, --developPush env Develop (default)-p, --productionPush env Production-s, --stagdingPush env Stagding-c, --cicdPush env CICD
head
Show the current version of environment variables
ssm-cli headlog
Log the history of the changes of environment variables
ssm-cli log--onelineShow in one line
revert
Revert to any previous version of environment variables
ssm-cli revert <version>Contributors
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago