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

@privacy-com/privacy-cli

v0.2.3

Published

CLI for the Privacy.com API - manage virtual cards and transactions from the terminal

Downloads

83

Readme

@privacy-com/privacy-cli

npm

Terminal CLI for the Privacy.com API. Manage virtual cards and transactions from the command line, with an interactive REPL mode.

Prerequisites

Getting Started

npm install -g @privacy-com/privacy-cli
privacy

On first run, the CLI will prompt for your API key and save it to ~/.privacy/config for future use.

Commands

Cards

privacy cards list [--page <n>] [--page-size <n>]       # List all cards
privacy cards create --type <type> [options]             # Create a card
privacy cards get <token>                                # Get card details
privacy cards update <token> [options]                   # Update card settings
privacy cards pause <token>                              # Pause a card
privacy cards unpause <token>                            # Unpause a card
privacy cards close <token>                              # Close a card (permanent)
privacy cards pan <token>                                # Get full PAN, CVV, expiry

Card types: SINGLE_USE (closes after first use), MERCHANT_LOCKED (locks to first merchant)

Note: CATEGORY_LOCKED cards appear in list/get output but cannot be created via CLI. To create a Category Locked card, use the Privacy Dashboard at app.privacy.com.

Create options: --memo <text>, --spend-limit <dollars>, --spend-limit-duration <TRANSACTION|MONTHLY|ANNUALLY|FOREVER>

Update options: --memo <text>, --spend-limit <dollars>, --spend-limit-duration <duration>, --state <OPEN|PAUSED>, --pin <pin>

Transactions

privacy transactions list [options]    # List transactions

Options: --begin <YYYY-MM-DD>, --end <YYYY-MM-DD>, --card-token <token>, --result <APPROVED|DECLINED>, --page <n>, --page-size <n>

Interactive REPL

privacy                    # start REPL (default when no command given)
privacy interactive        # explicit REPL mode

In the REPL, type commands without the privacy prefix:

privacy> cards list
privacy> cards create --type SINGLE_USE --memo "Coffee" --spend-limit 10
privacy> transactions list --begin 2025-01-01
privacy> help
privacy> exit

The REPL includes fuzzy command matching — if you mistype a command, it suggests the closest match.

Output Modes

| Mode | When | Description | |------|------|-------------| | Table | TTY terminal (default) | Aligned columns, right-aligned monetary values, pagination footer | | JSON | Non-TTY / --json flag | Compact JSON, monetary values formatted as $X.XX | | Wide | --wide flag | Table mode with all fields shown |

Authentication

The CLI resolves your API key in this order:

  1. PRIVACY_API_KEY environment variable
  2. ~/.privacy/config file (JSON with api_key field)
  3. Interactive prompt (saves to ~/.privacy/config with 0600 permissions)

Global Options

| Option | Description | |--------|-------------| | --json | Force JSON output | | --wide | Show all fields in table mode | | --version | Show CLI version | | --help | Show help text |