@infraasprompt/cli
The reference CLI for IaP — Infrastructure as Prompt. It takes a
natural-language requirement to a validated infrastructure.iap.yaml,
derives architecture / cost / security / compliance, and produces a
deterministic plan preview — all offline, with zero runtime dependencies.
Install
npm install -g @infraasprompt/cli
iap --version # iap 0.1.0
Workflow
iap init # starter infrastructure.iap.yaml
iap create "web app with a database" # author from natural language
iap validate -f infrastructure.iap.yaml # schema + reference + policy checks
iap cost -f infrastructure.iap.yaml --output json
iap security -f infrastructure.iap.yaml --output json
iap compliance -f infrastructure.iap.yaml --output json
iap diagram -f infrastructure.iap.yaml --view architecture
iap plan -f infrastructure.iap.yaml --mapping <provider.iap-map.yaml> --output json
v0.1 is plan-and-analyze only: the CLI does not deploy, maintain state, or
reach a cloud provider. Plans are deterministic (identical planId across
runs) and content-addressed (sha256:…).
License
Apache-2.0. Part of the IaP monorepo.