@zerct/zerct
v0.1.47
Published
Deploy Rust backends and static frontends to Zerct.
Maintainers
Readme
zerct
Deploy Rust backends and static frontends to Zerct.
npx @zerct/zerct init my-app --template fullstack-rust-tanstack
cd my-app/web && bun install && cd ..
npx @zerct/zerct doctor --json
npx @zerct/zerct deploy --wait --jsonnpx @zerct/zerct is the public npm command.
Rust backends expect Cargo.toml, Cargo.lock, and zerct.toml. They must
pass cargo fmt --all --check, locked Cargo checks, listen on
0.0.0.0:$PORT, and expose the configured health endpoint.
Static frontends must use TypeScript browser source, tsgo --noEmit for
typecheck, and native linting such as oxlint, biome check, or deno lint.
From a full-stack repo root, the same deploy command discovers nested
zerct.toml files and deploys the whole workspace in one command.
Preview before deploying:
npx @zerct/zerct previewAgent repair loop:
npx @zerct/zerct doctor --json
npx @zerct/zerct deploy --wait --json
npx @zerct/zerct logs --build job_1 --jsonFix the first failed agent_instruction. If a build fails, inspect build logs,
fix the first actionable log error, rerun doctor, then redeploy.
Managed Postgres apps receive DATABASE_URL, ZERCT_DATABASE_URL, and
ZERCT_DATABASE_CONNECTION_LIMIT. Use that limit as the max size for your
database pool.
Agents can also inspect API capabilities, account identity, usage, account activity, apps, complete app overviews, deploys, builds, app/deploy/build logs, env metadata, custom domains, domain verification, billing checkout links, billing portal links, and support ticket create, list, and resolve actions through the same CLI.
When a free-tier limit blocks work, run:
npx @zerct/zerct billing checkout --jsonWhen Zerct support is needed, include enough evidence for a support agent:
npx @zerct/zerct support create "Deploy failed" "Agent retried deploy after doctor." --app app_1 --build job_1 --deploy deploy_1 --failing-command "npx @zerct/zerct deploy --wait --json" --first-log-line "cargo check failed in src/main.rs" --jsonWhen the issue is fixed, resolve the ticket:
npx @zerct/zerct support resolve ticket_0123456789abcdef0123 --jsonOn first deploy, the CLI opens browser login, waits for GitHub or Google, stores the Zerct session in the OS credential store when available, and continues the deploy. Later commands reuse that session.
