Skip to content

CLI Reference

Initialize an .ai/ directory in your project.

Terminal window
dotai init [options]
OptionDescription
--template <name>Use a starter template (blank, minimal, web, python, monorepo)
--forceOverwrite existing .ai/ directory

Creates a starter config.yaml and example directives.

Generate tool-specific configuration files from .ai/ sources.

Terminal window
dotai sync [options]
OptionDescription
--forceOverwrite files even if manually edited (conflicts detected)
--dry-runShow what would be generated without writing files
--target <tool>Only generate for a specific tool (claude-code, cursor, codex, copilot, opencode, antigravity)

Reads .ai/ config, applies scope precedence, and writes output files for each target tool. Tracks content hashes in .ai/.state.json for conflict detection.

Validate your .ai/ configuration.

Terminal window
dotai check

Checks for:

  • Valid YAML syntax in config.yaml
  • Valid frontmatter in directives and agents
  • Required fields present on all entities
  • Scope values within allowed range
  • No conflicting permission rules

Show the current state of dotai configuration and generated files.

Terminal window
dotai status

Displays:

  • Which targets are configured
  • Number of entities by type
  • Sync status (up-to-date, needs sync, conflicts)
  • Files that have been manually modified since last sync

Import existing tool configurations into .ai/ format.

Terminal window
dotai import [options]
OptionDescription
--from <tool>Import from a specific tool (claude-code, cursor, codex, copilot, opencode)

Auto-detects existing configurations and converts them to .ai/ entities. See Importing Existing Configs for details.