blyp-cli
v0.1.52
Published
`blyp-cli` is a local developer workflow tool centered around two pieces:
Readme
blyp-cli
blyp-cli is a local developer workflow tool centered around two pieces:
blyp, a CLI for launching Studio, checking the environment, and installing Blyp skills- Studio, a local web UI for inspecting a project and working with its assistant tooling
The repo is a Bun + TypeScript monorepo with a CLI package, a Studio web app, and supporting API/env packages.
What Studio Does
Studio is the interactive surface for working with a local project. The CLI launches it, points it at a target directory, and opens the browser.
Today, Studio is designed around:
- inspecting a target project from your local machine
- running a local web app at
http://localhost:3003 - connecting assistant workflows to a specific project path
- using project-level AI settings, including
OPENROUTER_API_KEYandOPENROUTER_MODEL
When you run blyp studio [targetPath], the CLI:
- resolves the target project inside your current directory
- checks that the Studio frontend exists in this workspace
- ensures the target project has the AI settings Studio needs
- starts the Studio frontend if it is not already running
- opens the browser to the Studio URL for that project
If the frontend is already running, the CLI reuses it and opens the target project directly.
Studio can now be launched from any project through the published CLI package. When the command is run inside the blyp-cli repo it can still use the local Studio app during development, but published installs use the packaged Studio server bundled with @blyp/cli.
What The CLI Does
The blyp CLI is the local entrypoint for Blyp workflows. It currently supports:
- launching Studio for a project
- printing runtime and workspace diagnostics
- installing Blyp skills into a project-local
.agents/skillsdirectory - scaffolding the Blyp database schema contract for database mode
- showing help and version information
The CLI package in this repo is published as @blyp/cli, while the executable command remains blyp.
Getting Started
First, install the dependencies:
bun installThen, run the development server:
bun run devOpen http://localhost:3003 in your browser to see the fullstack application.
CLI
Run the CLI from this repo with:
bun run cli -- <command>The available commands are:
blyp studio [targetPath]Starts or reuses the local Studio app for a target project. IftargetPathis omitted, the current directory is used.blyp healthPrints runtime details such as the current directory, runtime versions, detected workspace root, and Studio web app path.blyp skills install [source-or-skill-name|claude] [--force]Installs a skill fromhttps://github.com/Blyphq/skillsby name, opens an interactive picker for skills from that repo, or generates a projectCLAUDE.mdwith the reservedclaudetarget.blyp db initWalks through Blyp database schema setup, scaffolds or repairs the schema contract, applies migrations, and writesblyp.config.tswhen it is safely Blyp-owned.blyp db migrateRuns the configured Prisma or Drizzle migration workflow.blyp db generateRuns Prisma client generation for configured Prisma projects.- Legacy aliases:
blyp db:init,blyp db:migrate,blyp db:generate blyp help,blyp -h,blyp --helpShows command usage.blyp --version,blyp -VPrints the CLI version.
Studio command
bun run cli -- studioLaunch Studio for the current directory:
bun run cli -- studioLaunch Studio from another project with the published package:
bunx @blyp/cli studioLaunch Studio for a subdirectory project:
bun run cli -- studio ./apps/exampleStudio uses project config files such as blyp.config.ts and project .env values when preparing AI settings. These config files are executed in the CLI process, so use only trusted configuration.
Skills command
Install a skill by name from Blyphq/skills:
bun run cli -- skills install studio-debuggerOpen the remote skill picker:
bun run cli -- skills installGenerate a project CLAUDE.md:
bun run cli -- skills install claudeblyp skills install claude can use these existing API keys from your shell env or project .env:
OPENROUTER_API_KEY
OPENAI_API_KEY
ANTHROPIC_API_KEYIf more than one is available, the CLI asks which provider to use. If none are available, it prompts for a provider and a session-only API key, then uses AI plus repo context to draft the narrative sections of CLAUDE.md.
Installed remote skills are copied into:
./.agents/skills/<skill-name>If the destination already exists, re-run with --force to replace it:
bun run cli -- skills install studio-debugger --forceIf you invoke the CLI from another project directly, you can run the source entrypoint:
bun /absolute/path/to/blyp-cli/packages/cli/src/index.ts skills installblyp skills install requires git and network access to GitHub when you are installing remote skills because it fetches the latest main revision of Blyphq/skills at install time. blyp skills install claude runs in the target project and uses network access only for the selected AI provider.
Database commands
Use these when a project is enabling Blyp database mode with Prisma or Drizzle. db init is the guided setup command; once the project is configured, db migrate and db generate are the shorter follow-up commands. The legacy db:init, db:migrate, and db:generate aliases still work.
Supported combinations:
prisma+postgresprisma+mysqldrizzle+postgresdrizzle+mysql
Examples:
bun run cli -- db initbun run cli -- db migratebun run cli -- db generateRuntime config belongs in:
./blyp.config.tsThese commands enforce the published Blyp schema contract, including the required trace_id column and the required indexes. They do not do runtime table auto-creation. They only create and apply migrations through the project’s Prisma or Drizzle tooling.
Publishing
The CLI package is published as @blyp/cli.
This repo includes a GitHub Actions workflow at .github/workflows/publish-cli.yml that publishes the CLI to npm when you push a tag like v0.1.0 or trigger the workflow manually.
Setup:
- Add an npm access token to the repository secrets as
NPM_TOKEN - Bump
packages/cli/package.jsonto the version you want to release - Push a matching git tag, for example
v0.1.0
The workflow will:
- install dependencies with Bun
- run CLI typechecks
- run CLI tests
- build the CLI package
- publish
@blyp/clito npm with public access
Project Structure
blyp-cli/
├── apps/
│ └── web/ # Fullstack application (React + TanStack Start)
├── packages/
│ ├── api/ # API layer / business logic
│ ├── cli/ # @blyp/cli package powering blyp (studio, health, skills, help, version)
│ ├── config/ # Shared config utilities
│ └── env/ # Environment utilitiesAvailable Scripts
bun run dev: Start all applications in development modebun run build: Build all applicationsbun run check-types: Check TypeScript types across all appsbun run cli: Run the CLI from source (bun run cli -- studio)
