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

@linkbcms/cli

v0.1.48

Published

A command line tool

Readme

linkb CMS CLI

A command-line interface tool for the linkb Content Management System.

Installation

Using npm

npm install -g @linkbcms/cli

Using yarn

yarn global add @linkbcms/cli

Using pnpm

pnpm add -g @linkbcms/cli

Using npx

You can also use it directly without installation:

npx @linkbcms/cli [command]

Prerequisites

Before using the linkb CLI, ensure you have:

  1. A .env file in your project directory with the following variables:

    • DATABASE_TYPE: The type of database you're using
    • DATABASE_URL: The connection string for your database
  2. A cms.config.tsx file in your project directory

Usage

Running the command without arguments will display the help menu:

linkb

Creating a New Application

You can create a new linkb application using the create-app command:

linkb create-app my-app

Or using npx directly:

npx @linkbcms/cli linkb create-app my-app

The create-app command accepts the following options:

  • -t, --template <name>: Template to use (default: basic)
  • --use-npm: Use npm as the package manager
  • --use-yarn: Use yarn as the package manager
  • --use-pnpm: Use pnpm as the package manager

This will create a new application based on the specified template. The dependencies will be automatically installed.

Database Operations

The CLI provides several database management commands:

linkb db [command]

Available database commands:

  • gen-schema: Generate database migration from your CMS configuration

    linkb db gen-schema
  • migrate: Run database migrations

    linkb db migrate
  • status: Check migration status

    linkb db status
  • test-connection: Test database connectivity

    linkb db test-connection

Error Handling

The CLI will check for:

  • Existence of .env file
  • Required environment variables
  • Existence of cms.config.tsx file
  • Proper execution of database operations

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

License

MIT