Packages
@teactjs/cli
The teact CLI — dev, build, start, deploy, webhook, generate, doctor, routes, and typecheck.
The teact command drives a project through development, building, deployment, and diagnostics.
It is installed as a dev dependency by create-teact, so most projects already have it.
bun add -D @teactjs/cliCommands
| Command | Purpose |
|---|---|
teact dev | Development server with hot reload (-e, --entry <file>) |
teact build | Build for production to dist/ (-e, --no-minify, --no-sourcemap) |
teact start | Run the production build (dist/index.js) — run teact build first |
teact deploy [target] | Scaffold & deploy to a serverless platform (default cloudflare; --run to execute the platform command) |
teact webhook <action> [url] | Manage the Telegram webhook: set <url> / delete / info (--secret, --drop) |
teact generate <type> <name> | Generate a component, hook, or plugin |
teact doctor | Check your environment and project setup |
teact routes | List registered routes in the project |
teact typecheck | Type-check with tsc --noEmit |
teact create <name> also exists for scaffolding, but new projects usually start with
bun create teact.
Typical workflow
teact dev # develop with hot reload
teact typecheck # verify types
teact build # produce dist/
teact webhook set https://example.com/api/bot --secret $SECRET
teact deploy cloudflare --runSee the Deployment guide for platform-specific setup.