Skip to content

sextant init

sextant init writes a starter .sextant/ directory. See the full guide for templates and post-init steps; this page is the flag reference.

sextant init [OPTIONS]
Options:
--template <TEMPLATE>
Which scaffold to drop. Defaults to `default`.
[possible values: default, rust, python, go, java, ts, strict]
--force
Overwrite existing files instead of skipping them.
-h, --help
Print help.
.sextant/
├── config.toml # always written if missing
└── rules/ # always created
└── (template-specific sample rule, if any)

config.toml is the only file every template writes. The rules/ directory is created empty for default and strict; language templates drop one sample rule there.

By default, init skips files that already exist. Re-running the command after editing config.toml won’t lose your changes. Pass --force to overwrite.

Terminal window
sextant init # bootstrap, skipping existing files
sextant init --template rust # add the Rust sample rule
sextant init --force # overwrite everything

Full template list and what each writes is in Getting started → sextant init.

CodeWhen
0Files written or skipped successfully.
2Filesystem error, invalid template name, or other CLI failure.