Teact
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/cli

Commands

CommandPurpose
teact devDevelopment server with hot reload (-e, --entry <file>)
teact buildBuild for production to dist/ (-e, --no-minify, --no-sourcemap)
teact startRun 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 doctorCheck your environment and project setup
teact routesList registered routes in the project
teact typecheckType-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 --run

See the Deployment guide for platform-specific setup.

On this page