Skip to main content
Reads a JSON spec file and ensures the declared basins and streams exist with the specified configuration. Resources that already exist are reconfigured to match the spec, and only the fields present in the spec are updated.
s2 apply -f spec.json

Flags

FlagDescription
-f, --filePath to the JSON spec file (required unless --schema is used)
--dry-runPreview changes without making any mutations
--schemaPrint the JSON Schema for the spec format to stdout
For the spec file format, configuration fields, IDE setup, and dry run output, see Declarative Spec.