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

@3xhaust/deploy-cli

v1.3.2

Published

CLI for Deploy platform - AI-friendly deployment management

Readme

deploy-cli

CLI for the Deploy platform. Manage projects, deployments, environment variables, and settings from the terminal.

Setup

pnpm install
pnpm build        # esbuild -> dist/index.js
node dist/index.js login          # GitHub OAuth (opens browser)
node dist/index.js login --api https://your-api.com  # custom API server

Config is stored at ~/.deploy-cli/config.json (jwt, refreshToken, apiUrl). Default API: http://localhost:3000. Override with DEPLOY_API_URL env var.

Command Reference

Projects can be referenced by numeric ID or name (case-insensitive).

Auth

deploy login [--api <url>]    # GitHub OAuth login
deploy whoami                 # Show logged-in user

Projects

deploy projects list                         # List all projects
deploy projects info <project>               # Show project details + latest deployment
deploy projects create -r owner/repo         # Create & auto-deploy from GitHub repo
  [-n name] [-b branch] [-d domain]
  [-e KEY=VALUE ...] [--public-env KEY=VALUE ...]
  [-s rolling-update|blue-green|canary]
  [--no-deploy]                              # Create without deploying
deploy projects delete <project>             # Delete a project
deploy projects inspect -r owner/repo        # Inspect repo without creating project
  [-b branch] [-n name]

Deploy

deploy deploy <project>                      # Trigger deployment
  [-b branch] [-d domain]
  [-e KEY=VALUE ...] [--public-env KEY=VALUE ...]
  [-s strategy]
deploy redeploy <project> [-s strategy]      # Redeploy current version

Logs & Deployments

deploy logs <project>                        # Show build logs (latest deployment)
  [-f|--follow]                              # Stream live logs via WebSocket
  [--deployment-id <id>]                     # Specific deployment
deploy deployments <project>                 # List all deployments (table)

Environment Variables

deploy env list <project>                    # List env vars (secrets masked)
deploy env set <project> KEY=VALUE           # Set env var
  [-t backend|frontend|all]                  # Target (default: backend)
deploy env delete <project> <key>            # Delete env var

Settings

deploy settings get <project>               # Show all settings
deploy settings update <project>             # Update settings
  [--install-command <cmd>]
  [--output-dir <dir>]
  [--port <port>]
  [--db-type none|postgresql|mysql]
  [--redis | --no-redis]
  [--elasticsearch | --no-elasticsearch]
  [--auto-deploy | --no-auto-deploy]
  [--auto-deploy-branch <branch>]
  [--strategy <strategy>]
  [--cloudflare-proxied | --no-cloudflare-proxied]
  [--pvc | --no-pvc]
  [--pvc-size <size>]                        # e.g. 5Gi
  [--pvc-mount-path <path>]

Members

deploy members list <project>               # List project members
deploy members invite <project> <username>   # Invite user by GitHub username
deploy members remove <project> <userId>     # Remove member by user ID

Repos

deploy repos list [--org <org>]             # List GitHub repos accessible to user
deploy repos branches <owner/repo>          # List branches of a repo

Blueprint

deploy blueprint <project>                  # Show deployment blueprint (layout, units, datastores)

Secrets (local machine only)

Stored at ~/.deploy-cli/secrets.json with file mode 0600 and directory mode 0700. Never sent to any server — used by deploy ssh and the deploy-troubleshoot Claude skill.

deploy secrets import <file> [--overwrite]  # Import from a .env-style file (multiline-quoted values OK)
deploy secrets list                         # List keys with masked values
deploy secrets set KEY=VALUE                # Set a single key
  [--file <path>]                           # ...or read value from file
  [--stdin]                                 # ...or read value from stdin
deploy secrets get <key> [--reveal]         # Print value (masked unless --reveal)
deploy secrets delete <key>                 # Delete one key
deploy secrets clear                        # Remove the whole secrets file

SSH

Uses stored SSH_HOST, SSH_USER, SSH_PORT, and SSH_KEY (or SSH_PASSWORD if sshpass is installed). The private key is written to an ephemeral 0600 tmpfile and unlinked on exit — never persisted on disk, never echoed.

deploy ssh                                  # Open interactive session
deploy ssh run "<command>"                  # Run command, stream stdout/stderr
  [--timeout <seconds>]                     # Default 120
  [--json]                                  # Emit {code,stdout,stderr,timedOut}

Deployment Servers

Register SSH servers in the Deploy API and select them when deploying:

deploy targets add --name prod --host 125.186.161.87 --port 2202 --user ubuntu --password '...'
deploy targets list
deploy targets update prod --workspace /home/ubuntu/apps --registry 125.186.161.87:5000
deploy targets provision prod
deploy deploy my-project --target prod
deploy redeploy my-project --target prod

Claude Code skills

Two skills ship with the package:

  • deploy — everyday operations (create / deploy / redeploy / env / settings / logs / members).
  • deploy-troubleshoot — diagnose failed deployments (build logs → pod state → host checks → fix → redeploy), using deploy ssh run so SSH credentials never hit the command line.

Install them into Claude Code after pnpm i -g @3xhaust/deploy-cli:

deploy skills list                           # show what's bundled
deploy skills install                        # install all to ~/.claude/skills
deploy skills install deploy                 # install just one
deploy skills install --project .            # install into ./.claude/skills
deploy skills uninstall deploy-troubleshoot

install is idempotent — same content is skipped, diverged content requires --force.

Common Workflows

Create and deploy a project:

deploy login
deploy projects create -r myorg/myapp -b main -d myapp.example.com -e DATABASE_URL=postgres://...
deploy logs myapp -f

Update settings and redeploy:

deploy settings update myapp --port 8080 --db-type postgresql --redis --auto-deploy
deploy redeploy myapp

Manage env vars:

deploy env set myapp SECRET_KEY=abc123 -t backend
deploy env set myapp NEXT_PUBLIC_API=https://api.example.com -t frontend
deploy env list myapp

API Endpoints Used

| Command | Method | Endpoint | |---|---|---| | whoami | GET | /auth/me | | login | GET | /auth/github?state=cli:{port} | | projects list | GET | /projects | | projects info | GET | /projects/:id | | projects create | POST | /projects/auto | | projects delete | DELETE | /projects/:id | | projects inspect | POST | /projects/auto/inspect | | deploy | POST | /projects/:id/deployments/auto | | redeploy | POST | /projects/:id/deployments/redeploy | | logs | GET | /projects/:id/deployments or /projects/:id/deployments/:did | | logs -f | WS | /deployments (events: log, status) | | deployments | GET | /projects/:id/deployments | | env list | GET | /projects/:id (reads envVariables) | | env set | POST | /projects/:id/env body: {key, value, target} | | env delete | DELETE | /projects/:id/env/:key | | settings get | GET | /projects/:id/settings | | settings update | POST | /projects/:id/settings | | members list | GET | /projects/:id/members | | members invite | POST | /projects/:id/members body: {username} | | members remove | DELETE | /projects/:id/members/:userId | | repos list | GET | /github/repositories[?org=] | | repos branches | GET | /github/branches?fullName= | | blueprint | GET | /projects/:id/blueprint |

Deployment Strategies

  • rolling-update (default)
  • blue-green
  • canary

Error Handling

All commands exit with code 1 on failure. API errors surface the server's message field when available. Auth tokens auto-refresh on 401 responses.