sentrix init
Set up a repository for use with Sentrix.
sentrix init
Set up a repository for use with Sentrix. This command creates configuration files, installs the remaining managed Claude Code command asset, and updates your .gitignore.
Usage#
sentrix init [--check]
Options#
| Flag | Type | Default | Description |
|---|---|---|---|
--check | bool | false | Validate an existing setup without modifying any files. |
--check and --force are mutually exclusive and cannot be used together.
What It Creates#
When you run sentrix init, four things happen:
1. Claude Code Commands#
Installs the remaining managed Claude Code command asset to .claude/commands/: /sentrix-requirements-review. If that file already exists, it is skipped unless you pass --force to overwrite it. sentrix requirements new, sentrix initiative new, and sentrix plans new use bundled internal prompts and do not install repo-managed slash-command files.
2. Repository Config#
Creates .sentrix/config.toml with your API URL and platform mappings. This file is committed to source control so your team shares the same configuration.
You are prompted for:
- API URL - The Sentrix API endpoint (default:
https://api.sentrix.ai) - Platforms - For each app directory found in
plans/, which platform it uses (nextjs,fastapi,rust-cli, orui-component) - Architecture docs - File paths to architecture documentation that guides AI-generated plans for each platform
3. User Config#
Creates user-scoped files in your local Sentrix directory. On macOS, Linux, and Windows WSL (Ubuntu) this directory is ~/.sentrix/. On Windows native it is %APPDATA%\sentrix\. These files are local to your machine and should never be committed.
Files written there include:
config.tomlfor your name, email, and optional user-level overridesconfig.lockfor user config locking during updatessecrets.enc.jsonandsecrets.keyfor encrypted API key storage
You are prompted for:
- API key - Your authentication key (entered as hidden input)
- Name - Your display name
- Email - Your email address
4. Gitignore Update#
Appends .sentrix/plan-index.json to your .gitignore if not already present.
Validating an Existing Setup#
Use --check to verify your setup without making changes:
sentrix init --check
This runs checks including:
- Config files exist and contain valid schemas
- API URL and key are configured
- At least one platform mapping is present
- The remaining managed Claude Code command file is installed
.gitignoreincludes the plan index- User config file permissions are secure (Unix only)
The command exits with code 1 if any check fails. Warnings (such as missing name/email or incorrect file permissions) do not affect the exit code.
Examples#
Set up a new repository:
sentrix init
Overwrite the managed Claude Code command file:
sentrix init --force
Preview what would be created without writing anything:
sentrix init --dry-run
Check that an existing setup is valid:
sentrix init --check