@infra-ts/runtime
v0.5.0
Published
The infra-ts engine: load infra.ts, read/write the .infra link file, and plan/apply/destroy a config across providers with typed env and lifecycle hooks.
Maintainers
Readme
@infra-ts/runtime
The infra-ts engine (imperative shell). Loads
infra.ts (via jiti), reads/writes the .infra link file, and runs the core operations
across providers: plan, apply, destroy, status, pullEnv, parseEnv, plus the
git-driven gitSync flow and the lifecycle-hook runner.
import {
loadConfig,
apply,
plan,
destroy,
status,
pullEnv,
} from "@infra-ts/runtime";
const { config, rootDir } = await loadConfig();
await apply(config, { rootDir });Everything the infra-ts CLI does is a function here. See the
monorepo README → SDK reference.
