Skip to content

CLI Reference

Terminal window
indentier [options] [files...]

When no files are given, reads from stdin and writes to stdout.

FlagDescription
-w, --writeFormat files in place
-c, --checkExit 1 if any file would change (CI-friendly)
--initCreate .indentierrc.json and .indentierignore
--mode <mode>Override mode: default or ruby
--offset <n>Override the offset (columns after longest body)
--no-semiDo not move semicolons
--no-commaDo not move trailing commas
--versionPrint version
--helpPrint help
Terminal window
# Format a single file to stdout
indentier src/main.ts
# Format all TS files in place
indentier --write "src/**/*.ts"
# CI check — fails if anything is unformatted
indentier --check "src/**"
# Override mode on the command line
indentier --mode ruby --write src/
# Scaffold config files
indentier --init
CodeMeaning
0Success (or no changes needed for --check)
1Files would change (--check) or fatal error