Initialize a new project
soxom init scaffolds the two files Soxom needs — openapi.yaml and
soxom.yaml — in the current directory. It’s the same starter content the
dashboard uses when you create a new project, so the local and hosted
workflows produce identical results.
mkdir my-sdk && cd my-sdksoxom initThe CLI writes:
.├── openapi.yaml├── soxom.yaml└── .gitignore # adds `previews/` so generated preview output isn't committedIf .gitignore already exists, the CLI appends previews/ only if it isn’t
already listed.
| Flag | Description |
|---|---|
--force | Overwrite existing files. Without this, init refuses to clobber. |
What the starter spec looks like
Section titled “What the starter spec looks like”The generated openapi.yaml is a minimal but valid 3.1 spec with one
resource and one operation — enough for soxom validate to pass and
soxom preview to produce an SDK without further edits.
soxom.yaml is set up with TypeScript and Python targets enabled and
sensible defaults (ESM module format, Python min_version: "3.9"). Edit it
to match your stack and add or remove targets as needed.