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

@forge-js/cli

v2.5.2

Published

CLI tool for managing releases in the forge-js monorepo

Downloads

63

Readme

@forge-js/cli

Comprehensive CLI tool for managing releases in the forge-js monorepo.


🚀 Quick Start

Get started with the CLI in 30 seconds:

# 1. Install (in monorepo)
pnpm install

# 2. Build
pnpm nx build cli

# 3. Use the CLI
node dist/packages/cli/bin/forge.js --help

For global access, link the package:

cd dist/packages/cli
npm link
forge --help

Installation

# Install in the monorepo
pnpm install

# Build the CLI
pnpm nx build cli

# Link globally (optional)
npm link

Commands

Release Management

# Create a changeset
forge release changeset
# or
forge release cs

# Create empty changeset
forge release changeset --empty

# Version packages
forge release version

# Check changeset status
forge release status
forge release status --verbose
forge release status --since main

Publishing

# Publish all packages with automatic tag detection
forge publish

# Dry run (no actual publishing)
forge publish --dry-run

# Verbose output
forge publish --verbose

Pre-release Management

# Enter pre-release mode
forge prerelease enter alpha
forge prerelease enter beta
forge prerelease enter rc
forge prerelease enter next
forge prerelease enter canary

# Enter pre-release with snapshot
forge prerelease enter alpha --snapshot

# Exit pre-release mode
forge prerelease exit

Features

Smart Tag Detection - Automatically detects npm distribution tags based on version
Pre-release Support - Full support for alpha, beta, rc, next, canary versions
Dry Run Mode - Test publishing without actually publishing
Beautiful Output - Colored, spinner-based progress indicators
Error Handling - Comprehensive error messages and validation

Distribution Tags

The CLI automatically determines the correct npm distribution tag:

| Version Format | Tag | Example | |----------------|-----|---------| | X.Y.Z | latest | 1.0.0 | | X.Y.Z-alpha.N | alpha | 1.0.0-alpha.0 | | X.Y.Z-beta.N | beta | 1.0.0-beta.1 | | X.Y.Z-rc.N | rc | 1.0.0-rc.0 | | X.Y.Z-next.N | next | 1.0.0-next.2 | | X.Y.Z-canary.SHA | canary | 1.0.0-canary.abc123 |

Workflow Examples

Standard Release

# 1. Make changes
# 2. Create changeset
forge release changeset

# 3. Version packages
forge release version

# 4. Commit and push
git add .
git commit -m "chore: version packages"
git push

# 5. Publish
forge publish

Pre-release Workflow

# 1. Enter pre-release mode
forge prerelease enter alpha

# 2. Create changeset
forge release changeset

# 3. Version with pre-release tag
forge release version

# 4. Publish with alpha tag
forge publish

# 5. Exit pre-release mode
forge prerelease exit

Integration with CI/CD

The CLI is designed to work seamlessly with GitHub Actions:

- name: Publish packages
  run: npx @forge-js/cli publish
  env:
    NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Development

# Build the CLI
pnpm nx build cli

# Run locally
node dist/packages/cli/bin/forge.js --help

# Link for development
cd dist/packages/cli
npm link
forge --help

Architecture

packages/cli/
├── bin/
│   └── forge.js          # Entry point
├── src/
│   ├── index.ts          # Main CLI setup
│   └── commands/
│       ├── release.ts    # Release commands
│       ├── publish.ts    # Publishing logic
│       └── prerelease.ts # Pre-release management
├── package.json
└── tsconfig.json

Dependencies

  • commander - CLI framework
  • chalk - Terminal styling
  • ora - Elegant terminal spinners

License

ISC