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

formgrid-cli

v1.1.0

Published

CLI tool for managing and running Formgrid locally with Docker — just like Supabase CLI.

Readme

@formgrid/cli

A Supabase-like CLI for managing and running Formgrid locally with Docker.

Installation

Global Installation (Recommended)

# Install from npm
npm install -g formgrid-cli

Usage

Important: The CLI must be run from your FormGrid project root directory.

# 1. Navigate to your FormGrid project
cd /path/to/formgrid

# 2. Run commands
formgrid start
formgrid status
formgrid logs

First Time Setup

# Clone FormGrid
git clone https://github.com/allenarduino/formgrid.git
cd formgrid

# Install dependencies
pnpm install

# Initialize environment files
formgrid init

# Start with CLI
formgrid start -d

Local Usage (Development)

# From the monorepo root
pnpm cli:dev -- <command>

# Or directly
cd packages/cli
pnpm dev -- <command>

Commands

formgrid init

Initialize FormGrid by creating required environment files.

formgrid init

What it does:

  • Creates docker/.env from example or with defaults
  • Creates packages/api/.env from example or with defaults
  • Sets up minimal configuration to get started
  • Skips files that already exist

Run this first before starting FormGrid for the first time.


formgrid start

Start Formgrid locally using Docker Compose.

formgrid start              # Start all services (interactive)
formgrid start --detached   # Start in background (detached mode)
formgrid start -d           # Same as above

What it does:

  • Starts MySQL database
  • Starts Redis
  • Starts MinIO (S3-compatible storage)
  • Starts backend API
  • Starts frontend dashboard
  • Starts queue worker

Access your services:

  • Dashboard: http://localhost:5173
  • API: http://localhost:4001
  • MinIO Console: http://localhost:9001

formgrid stop

Stop all Formgrid Docker containers.

formgrid stop

formgrid restart

Restart all Formgrid Docker containers.

formgrid restart

formgrid logs

View logs for running Formgrid containers.

formgrid logs                      # Follow all logs
formgrid logs --service backend    # Backend logs only
formgrid logs --service frontend   # Frontend logs only
formgrid logs --service db         # Database logs only
formgrid logs -s redis             # Redis logs only

Available services: backend, frontend, db, redis, minio, queue-worker


formgrid ps

List all running Formgrid containers.

formgrid ps

formgrid status

Check the status of all Formgrid services.

formgrid status

Shows which services are running, stopped, or healthy.


formgrid clean

Stop containers and remove volumes (clean slate).

formgrid clean

Warning: This will delete all data including:

  • Database data
  • Redis cache
  • MinIO files
  • Uploaded files

formgrid migrate

Run database migrations.

formgrid migrate

Runs Prisma migrations inside the backend container.


Quick Start

# 1. Start Formgrid
formgrid start -d

# 2. Check status
formgrid status

# 3. View logs
formgrid logs

# 4. Stop when done
formgrid stop

Development

Running the CLI in Development

# From monorepo root
pnpm cli:dev -- start

# Or from packages/cli
pnpm dev -- start

Building the CLI

# From monorepo root
pnpm cli:build

# Or from packages/cli
pnpm build

Architecture

The CLI is built with:

  • Commander.js - CLI framework
  • Chalk - Colorful terminal output
  • Ora - Elegant terminal spinners
  • Execa - Better child_process
  • TypeScript - Type safety
  • tsup - Fast TypeScript bundler

Examples

Start Formgrid for development

formgrid start

Start in background and check logs

formgrid start -d
formgrid logs --service backend

Reset everything and start fresh

formgrid clean
formgrid start

Check what's running

formgrid status
formgrid ps

Troubleshooting

"docker: command not found"

Make sure Docker is installed and running:

docker --version
docker ps

"Cannot connect to the Docker daemon"

Start Docker Desktop or the Docker daemon.

Services not starting

Check logs for specific service:

formgrid logs --service backend

Clean and restart:

formgrid clean
formgrid start

Environment Variables

The CLI uses the Docker Compose configuration in docker/docker-compose.yml.

Make sure you have:

  • docker/.env with required environment variables
  • Docker and Docker Compose installed

Publishing

To publish to npm (for maintainers):

cd packages/cli
pnpm build
npm publish --access public

License

MIT


FormGrid CLI - Manage your local Formgrid instance with ease! 🚀