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

@reaatech/prompt-version-control-cli

v0.1.0

Published

Prompt Version Control CLI

Readme

@reaatech/prompt-version-control-cli

npm version License: MIT CI

Status: Pre-1.0 — APIs may change in minor versions. Pin to a specific version in production.

The pvc command-line tool for managing prompts, versions, and tags from the terminal. Built on Clipanion 4 with typed options, rich help output, and persistent configuration via ~/.pvcrc.

Installation

npm install -g @reaatech/prompt-version-control-cli
# or
pnpm add -g @reaatech/prompt-version-control-cli

Feature Overview

  • Zero-touch setuppvc init writes a config file and you're ready
  • Prompt CRUD — create, list, and retrieve prompts by ID or name
  • Version management — create versions with automatic numbering
  • Tag lifecycle — set draft, staging, and production tags by version number or ID
  • Persistent configuration~/.pvcrc stores API URL and key (mode 0600)
  • Rich CLI output — colorized tables, error formatting, and --help on every command
  • Composable with CI/CD — exit codes for scripting and automation

Quick Start

# Configure the CLI (writes ~/.pvcrc with restricted permissions)
pvc init --api-url http://localhost:3000 --api-key "pvc_your-api-key"

# Create a new prompt
pvc prompt create -n customer-support -t "You are a helpful support agent. Help with: {{issue}}"

# List all prompts
pvc prompt list

# Get a prompt by name or ID
pvc prompt get customer-support

# Create a new version (auto-increments the version number)
pvc version create -p customer-support -c "You are a senior support agent. Help with: {{issue}}"

# Tag version 2 as production
pvc tag set -p customer-support -v 2 -t production

Commands

pvc init

Initialize the CLI configuration. Writes ~/.pvcrc with restricted file permissions (mode 0600).

| Option | Description | |--------|-------------| | --api-url | API server URL (default: http://localhost:3000) | | --api-key | API key for authentication (required) |

pvc prompt list

List all prompts in the project.

$ pvc prompt list
┌──────────────────────┬─────────────────────┬──────────────────────┐
│ ID                   │ Name                │ Template             │
├──────────────────────┼─────────────────────┼──────────────────────┤
│ prompt_abc123        │ customer-support    │ You are a helpful…   │
│ prompt_def456        │ sales-assistant     │ You are a sales…     │
└──────────────────────┴─────────────────────┴──────────────────────┘

pvc prompt create

Create a new prompt.

| Option | Short | Description | |--------|-------|-------------| | --name | -n | Prompt name (required) | | --template | -t | Prompt template with {{handlebars}} variables (required) | | --description | -d | Optional description |

pvc prompt get <ref>

Retrieve a prompt by ID or name. The positional argument <ref> is resolved against both ID and name fields.

$ pvc prompt get customer-support
ID:        prompt_abc123
Name:      customer-support
Template:  You are a helpful support agent. Help with: {{issue}}
Created:   2026-04-15T10:30:00.000Z

pvc version create

Create a new version for a prompt. The version number is auto-incremented.

| Option | Short | Description | |--------|-------|-------------| | --prompt | -p | Prompt ID or name (required) | | --content | -c | Version content (required) | | --template | -t | Template string (defaults to --content if omitted) |

pvc tag set

Move a tag to a specific version. Accepts the version as either a number (e.g., 2) or a full version ID.

| Option | Short | Description | |--------|-------|-------------| | --prompt | -p | Prompt ID or name (required) | | --version | -v | Version number or ID (required) | | --tag | -t | Tag name: draft, staging, or production (required) |

Configuration

The CLI persists its configuration in ~/.pvcrc as JSON:

{
  "apiUrl": "http://localhost:3000",
  "apiKey": "pvc_your-api-key",
  "defaultProject": "my-project"
}

The file is created with mode 0600 (owner read/write only) to protect the API key.

Usage Patterns

CI/CD Integration

# In your CI pipeline, configure from environment variables
pvc init --api-url "$PVC_API_URL" --api-key "$PVC_API_KEY"

# Promote staging to production after tests pass
LATEST_VERSION=$(pvc prompt get my-assistant | jq -r '.currentVersion')
pvc tag set -p my-assistant -v "$LATEST_VERSION" -t production

Automation with Exit Codes

All commands exit with code 0 on success and non-zero on failure. Combine with shell scripting:

if ! pvc prompt get my-prompt > /dev/null 2>&1; then
  pvc prompt create -n my-prompt -t "Default: {{input}}"
fi

Related Packages

License

MIT