@open-press/cli
v3.0.1
Published
Command line interface for OpenPress workspaces.
Maintainers
Readme
@open-press/cli
Workspace CLI for open-press — an AI-first fixed-layout document workspace.
Prerequisite
Node.js 20 or newer with npm / npx. Use Node.js 24 for framework development and Cloudflare Pages builds.
Quick start
npm create @open-press my-deck -- --type slides
cd my-deck
npm run devThen open the local URL printed by Vite (typically http://127.0.0.1:5173/workspace).
@open-press/create creates a package-based OpenPress workspace. Runtime files stay inside @open-press/core; your project keeps only source files, theme files, media, and npm scripts. The default scaffold is a minimal slides workspace; page-based structures are created by OpenPress skills inside that workspace.
Usage
open-press create <name> --type slides [--title <s>]| Flag | Description |
| -------------------- | --------------------------------------------------------------------------- |
| --title <s> | Document title |
| --type slides | Scaffold a folder-convention Press under press/<name>/ |
| --help | Print help |
open-press createruns inside an existing workspace and never installs packages, initializes git, or syncs skills.
To use an opinionated starter, install a skill and let the agent copy that starter's press/ files into the workspace:
npx -y skills@latest add quan0715/openpress-social-card-skillWhat it creates
A self-contained workspace with:
package.jsonwith@open-press/core,@open-press/cli, andopen-press ...scriptspress/<name>/press.tsxfor folder-convention Press entriespress/<name>/theme/andpress/<name>/slides/for the minimal slides scaffold- optional
press/shared/only when multiple Press folders intentionally share assets, media, or components
It does not create engine/, src/openpress/, index.html, or vite.config.ts in your project. Those are package-owned runtime internals.
After create
Workspace commands (run via npm run or open-press):
npm run dev # start workbench
npm run build # validate + render dist-react/
npm run preview # preview production build
npm run typecheck # tsc --noEmit
npm run openpress:image # render one PNG per page
npm run openpress:pdf # render PDF
npm run openpress:word # render page Press DOCX
npm run openpress:deploy:dry-run # preview deploy without publishingFull reference: https://open-press.dev/docs/cli
License
MIT — see LICENSE.
