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

@edge-base/cli

v0.2.6

Published

CLI for EdgeBase — create, develop, and deploy EdgeBase projects

Readme


@edge-base/cli is the command surface for the full EdgeBase project lifecycle.

Use it to:

  • bootstrap a new project
  • run local development with hot reload
  • deploy and destroy project-scoped Cloudflare resources
  • generate types, migrations, backups, and exports
  • manage secrets, keys, plugins, and admin operations

Beta: the CLI is already usable, but some commands and flags may still evolve before general availability.

Documentation Map

  • Quickstart Start a new EdgeBase project with npm create edgebase@latest
  • CLI Overview Understand what the CLI owns across local development, deploy, data workflows, and tooling
  • CLI Workflows Task-focused guides for common flows
  • CLI Reference Full command inventory, aliases, and environment variables

For AI Coding Assistants

This package ships with an llms.txt file for AI-assisted CLI usage.

For the canonical runtime-routing rules across the whole platform, start with Use EdgeBase With AI and then read this package's llms.txt for CLI-specific command behavior.

You can find it:

  • after install: node_modules/@edge-base/cli/llms.txt
  • in the repository: llms.txt

Use it when you want an agent to:

  • pick the right command for a workflow
  • avoid guessing package-manager entrypoints
  • prefer --json --non-interactive in automation
  • stay inside the supported EdgeBase project structure

Installation

For new projects, the best starting point is:

npm create edgebase@latest my-app

That scaffold installs the local CLI into the generated project for you.

If you want the CLI globally:

npm install -g @edge-base/cli

After that, you can run:

edgebase --help

Quick Start

Start a new project

npm create edgebase@latest my-app
cd my-app
npm run dev

Inside an EdgeBase project, the local CLI is available through:

npx edgebase dev

Deploy to Cloudflare

cp .env.release.example .env.release
npx edgebase deploy

Generate types

npx edgebase typegen

What The CLI Covers

| Area | Commands | What it covers | | --- | --- | --- | | Project lifecycle | init, dev, deploy, destroy, logs, upgrade | Bootstrap, local runtime, deploy, cleanup, logging, and package upgrades | | Data workflow | migration, migrate, seed, backup, export, typegen, neon | Schema changes, provider migrations, fixture data, backups, exports, generated types, Neon setup | | Security and admin | secret, keys, admin | Secrets, Service Key/JWT rotation, and admin recovery flows | | Plugins and tooling | plugins, create-plugin, docker, webhook-test, completion, describe, telemetry, realtime | Plugin scaffolding, plugin maintenance, Docker support, completions, machine-readable command descriptions, telemetry, and Cloudflare Realtime setup |

Recommended Usage Pattern

Most teams do not need a global install.

A good default flow is:

  1. scaffold with npm create edgebase@latest
  2. keep the CLI local to the generated project
  3. run commands with npm run ... or npx edgebase ...

If you are adding EdgeBase to an existing frontend repo, a clean default is to scaffold into a dedicated subdirectory:

cd your-frontend-project
npm create edgebase@latest edgebase

That keeps the frontend app and the EdgeBase project close together without mixing them into the same root by accident.

Automation And CI

When another tool, agent, or CI job is driving the CLI, prefer:

edgebase --json --non-interactive <command>

This makes the CLI return structured responses instead of hanging on prompts.

Useful companion commands:

edgebase --json describe
edgebase --json describe --command "deploy"
edgebase --json describe --command "backup restore"

Read more: CLI Reference

Common Environment Variables

| Variable | Used by | | --- | --- | | EDGEBASE_URL | Remote commands such as migrate, backup, export, admin, plugins cleanup, and destroy | | EDGEBASE_SERVICE_KEY | Remote admin commands and Service Key authenticated flows | | CLOUDFLARE_API_TOKEN | Non-interactive deploy/destroy flows | | CLOUDFLARE_ACCOUNT_ID | Account-scoped Cloudflare operations | | NEON_API_KEY | edgebase neon setup in non-interactive environments |

Related Packages

License

MIT