Smithy CLI
$ smithy Official Low RiskThe official AWS Smithy CLI validates .smithy interface definition models, compiles AST JSON representations (smithy ast), and projects OpenAPI specs, client/server code, and documentation via smithy build. Supports --no-color, --logging, and deterministic CI exit codes.
brew install smithy-lang/tap/smithy-cli Smithy model validation, AST export (smithy ast), and OpenAPI projection run directly on local .smithy workspaces via smithy.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
smithy ast emits clean JSON AST on stdout, --no-color and --logging control output, and smithy validate runs non-interactively with strict exit codes.
smithy astoutputs full semantic JSON AST- Supports
--no-color,--logging <LEVEL>, and headlessvalidate
validate and ast are strictly read-only; build writes projections cleanly inside build/smithy (or --output).
- Read-only
validateandastsubcommands
Installed via Homebrew tap (smithy-lang/tap/smithy-cli) or official archive, carrying a heavier JVM/Gradle dependency resolution footprint than single Go/Rust binaries.
- Requires
smithy-lang/tapon Homebrew and JVM-backed dependency resolution
First-class IDL compiler for AWS-style service models, projecting OpenAPI, SDKs, and docs from one source of truth.
- Single-source IDL projecting OpenAPI and multi-language SDKs
Official AWS repository (smithy-lang/smithy) actively maintained under Apache-2.0.
- Official AWS Smithy organization
Thorough official Smithy 2.0 CLI documentation at smithy.io.
- Official CLI guides at smithy.io/2.0/guides/smithy-cli/
Security, Auth & Guardrails
None required for local models; Maven repository credentials may reside in local config when resolving private model dependencies.
100% free and Apache-2.0 open-source.
# Smithy CLI Agent Rules - Run `smithy validate --no-color` before `smithy build` to catch model errors without writing artifacts. - Use `smithy ast` when inspecting resolved shapes programmatically in JSON. - Pass `--no-color` and `--logging WARNING` when compact output is needed.
Agent-Ready Command Recipes
Safe Read-Only Queries
smithy validate --no-color
Parses and validates smithy-build.json and .smithy files read-only without emitting artifacts.
smithy ast model/
Serializes the validated Smithy model into a single machine-readable JSON AST on stdout.
Controlled Writes & Previews
smithy build --no-color
Projects configured OpenAPI schemas, SDKs, or artifacts into build/smithy.
Strengths for Agents
- + Official AWS IDL toolchain with strict
validateandsmithy astJSON AST export. - + Clean
--no-colorand--loggingcontrols for CI and agent sandboxes. - + Projects OpenAPI specs and SDKs deterministically from
.smithymodels.
Caveats & Pitfalls
- ! Requires tapping
smithy-lang/tap/smithy-clion Homebrew or installing platform archives. - ! Project builds resolving external Maven/JAR model dependencies require network access on cold caches.