@terajs/cli
v1.0.7
Published
Official Terajs scaffold and project CLI.
Maintainers
Readme
@terajs/cli
Command-line tooling for scaffolding and running Terajs projects.
This package backs the official Terajs scaffold flow and exposes project maintenance commands.
Quickstart
npm create terajs@latest my-app
cd my-app
npm install
npm run devCommands
tera init <name>: scaffold a new Terajs projecttera init <name> --hub <signalr|socket.io|websockets> [--hub-url <url>]: scaffold a project preconfigured for realtime hub transporttera doctor: inspect a Terajs project and report missing or broken setuptera dev --port <number>: start Vite dev server with Terajs plugintera build: build production output with Terajs plugin
Scaffolded projects target the app-facing launch surface:
@terajs/app@terajs/app/viteterajs.config.cjs.teraroute/page structure undersrc/pages
Notes
- Generated projects include
.terafile association defaults for VS Code. - Realtime scaffolds can preconfigure
sync.hubfor SignalR, Socket.IO, or raw WebSockets. create-terajsis the public one-command entrypoint for app creation.
