Using CLI
Use the sevo CLI to run a server entry in development or production.
Running the CLI
After installation:
sevo
Without installation:
npx sevo
yarn dlx sevo
pnpm dlx sevo
bunx sevo
deno run -A npm:sevo
Default Entry Resolution
When --entry is omitted, the CLI searches for common entry files such as:
server.tsserver.mjssrc/server.tssrc/server.mjs
If you want to run another filename or a .tsx entry, pass it explicitly.
Usage
sevo <file>
sevo <dir>
sevo --entry <file>
sevo --dir <dir>
Options:
--entry <file> Server entry file to use
--dir <dir> Working directory for resolving entry files
-h, --help Show this help message
-v, --version Show package and runtime versions
-p, --port <port> Port to listen on
--host, --hostname <host> Host to bind to
-s, --static <dir> Serve static files from a directory
--prod Disable watch mode and use production env defaults
--import <module> Preload a module in Node.js or Bun
--tls Enable TLS
--cert <file> TLS certificate file
--key <file> TLS private key file
Examples
Run a standard TypeScript entry
sevo --entry ./server.ts
Run from a working directory
sevo --dir ./apps/api
Use a positional entry
sevo ./server.ts
Serve static files only
sevo --static ./public
Start in production mode
sevo --prod --entry ./server.ts
Run a JSX / TSX entry with jiti
JITI_JSX=1 sevo --entry ./server.tsx --import jiti/register
--import is currently intended for Node.js and Bun. Deno does not use that
flag in this CLI flow.
Environment Variables
PORT: default port when--portis omittedHOST: default host when--host/--hostnameis omittedNODE_ENV: defaults todevelopmentorproductionbased on--prod