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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mosmos_21/vault-key-cli

v0.2.0

Published

VaultKey の CLI ツール。コマンドラインから機密情報を管理できます。

Readme

@mosmos_21/vault-key-cli

VaultKey の CLI ツール。コマンドラインから機密情報を安全に管理できます。

インストール

npm install -g @mosmos_21/vault-key-cli

使い方

1. データベースの初期化

vaultkey init

データベースファイルのデフォルトパスは ~/.vaultkey/vaultkey.db です。

カスタムパスを指定する場合:

vaultkey init --db-path /path/to/db.db

2. ユーザー登録

vaultkey user register

ユーザー ID を入力してユーザーを登録します。

3. ログイン

vaultkey user login

ユーザー ID を入力してログインし、アクセストークンを取得します。トークンは ~/.vaultkey/token に保存されます。

4. 機密情報の管理

機密情報の保存

vaultkey secret set <key>

プロンプトに従って機密情報の値を入力します。値はマスク表示されます。

機密情報の取得

vaultkey secret get <key>

指定したキーの機密情報を取得します。

機密情報の更新

vaultkey secret update <key>

既存の機密情報を更新します。

機密情報の削除

vaultkey secret delete <key>

指定したキーの機密情報を削除します。

機密情報一覧の取得

vaultkey secret list

すべての機密情報のキーを一覧表示します。

パターンでフィルタする:

vaultkey secret list --pattern "api_*"

5. トークン管理

トークン一覧の取得

vaultkey token list

現在のユーザーのすべてのトークンを一覧表示します。

トークンの無効化

vaultkey token revoke <token>

指定したトークンを無効化します。

6. ログアウト

vaultkey user logout

トークンファイル (~/.vaultkey/token) を削除します。

トークンの指定方法

トークンは以下の優先順位で取得されます:

  1. --token オプション
  2. トークンファイル (~/.vaultkey/token)
  3. 環境変数 (VAULTKEY_TOKEN)

コマンドで直接指定する場合:

vaultkey secret get my-key --token <your-token>

環境変数で指定する場合:

export VAULTKEY_TOKEN=<your-token>
vaultkey secret get my-key

環境変数

| 変数名 | 説明 | デフォルト値 | |--------|------|--------------| | VAULTKEY_TOKEN | アクセストークン | - | | VAULTKEY_DB_PATH | データベースファイルのパス | ~/.vaultkey/vaultkey.db | | VAULTKEY_MASTER_KEY | マスター暗号化キー | ランダム生成 |

ライセンス

MIT