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

@gitforge/cli

v0.1.0

Published

Terminal-native management tool for GitForge

Downloads

13

Readme

@gitforge/cli

Terminal-native management tool for GitForge — Git infrastructure for developers who build on Git.

Install

npm install -g @gitforge/cli

Or run without installing:

npx @gitforge/cli <command>

Quick Start

# Authenticate
gitforge auth login --token gf_your_token_here --endpoint https://api.git-forge.dev

# Check connection
gitforge status

# Create a repo
gitforge repo create --name my-repo --visibility private

# List repos
gitforge repo list

# Generate a short-lived token
gitforge token create --name "ci-token" --scopes "repo:read,repo:write"

Commands

Auth

gitforge auth login --token <pat>     # Store credentials
gitforge auth login --token <pat> --endpoint <url>
gitforge auth status                   # Show current auth info
gitforge auth token                    # Print PAT to stdout (for piping)
gitforge auth logout                   # Clear stored credentials

Repos

gitforge repo create --name <name> [--visibility public|private] [--description <desc>]
gitforge repo list [--format table|json] [--limit N]
gitforge repo get <id>
gitforge repo delete <id> --yes

Tokens

gitforge token create --name <name> --scopes <scopes>
gitforge token list [--format table|json]
gitforge token revoke <id>

Apps

gitforge app create --name <name>
gitforge app list [--format table|json]
gitforge app token <appId> --install <installId>

Billing

gitforge billing reconcile [--dry-run]   # Sync Stripe with plan config
gitforge billing drift                     # Check for config/Stripe mismatches

Storage

gitforge storage migrate --source s3 --target sftp --prefix <prefix> [--dry-run]

Release Notes

gitforge release notes --repo <id> --base v0.1.0 --head v0.2.0

Other

gitforge status           # Health check: auth, endpoint, repo count
gitforge init             # Interactive setup wizard
gitforge --version        # Print version
gitforge --help           # Show all commands

Global Options

--token <pat>    # Override stored/env auth for this command
--json           # Force JSON output (auto-enabled when piped)
--quiet          # Suppress non-essential output

Auth Priority

The CLI resolves authentication in this order:

  1. --token flag (highest)
  2. GITFORGE_TOKEN environment variable
  3. Stored credentials (~/.config/gitforge/auth.json)

Config

Stored at ~/.config/gitforge/:

~/.config/gitforge/
├── auth.json      # { "token": "gf_..." }
└── config.json    # { "endpoint": "...", "defaultVisibility": "private", "outputFormat": "table" }

Set config values:

gitforge config set endpoint https://api.git-forge.dev
gitforge config set defaultVisibility private
gitforge config set outputFormat json
gitforge config list

CI/CD Usage

# Use environment variable (no interactive auth)
export GITFORGE_TOKEN=gf_your_token_here
export GITFORGE_API_URL=https://api.git-forge.dev

gitforge repo create --name "build-$(date +%s)" --visibility private
gitforge release notes --repo $REPO_ID --base $PREV_TAG --head $NEW_TAG

Contributing

This CLI is developed inside the GitForge monorepo at sdks/cli/ and published to this repo via git subtree.

To contribute:

  1. Clone the monorepo: git clone https://github.com/Nu11ified/GitForge.git
  2. Install dependencies: cd sdks/cli && bun install
  3. Make changes in sdks/cli/
  4. Run tests: bun test sdks/cli/
  5. Submit a PR to the monorepo

License

MIT