Documentation Β· VERSA Spec Β· Examples
The official command-line tool for working with VERSA .ai/ folders. Initialize, validate, merge profiles, and generate agent context with a single command.
# Initialize a new .ai/ folder
versa init
# Validate your configuration
versa lint
# Print merged configuration
versa print --profile cursor
# Generate agent context
versa context --agent code-reviewer- π― Scaffold - Create
.ai/folders with sensible defaults - β Validate - Lint JSON and Markdown against VERSA schemas
- π Merge - Deep-merge profiles with base configuration
- π¦ Context - Assemble complete agent payloads
- π§Ύ Export - Print merged configs in JSON/YAML/Text
# npm
npm install -g @dotaislash/cli
# yarn
yarn global add @dotaislash/cli
# pnpm
pnpm add -g @dotaislash/cli
# Or use npx (no install)
npx @dotaislash/cli initScaffold a new .ai/ folder in your project.
# Interactive setup
versa init
# With options
versa init --minimal # Minimal setup
versa init --template typescript # Template support (planned)
versa init --profile cursor # Include profileCreates:
.ai/
βββ context.json # Base configuration
βββ profiles/ # Tool-specific overrides
βββ rules/ # Markdown rules
β βββ style.md
βββ agents/ # Agent configurations
βββ tools/ # MCP server configs
Validate your .ai/ folder against VERSA schemas.
# Lint entire .ai/ folder
versa lint
# Lint specific file
versa lint .ai/context.json
# Strict mode (fail on warnings)
versa lint --strictChecks:
- β JSON schema validation (context, profiles, agents, tools, knowledge, memory)
- β
Markdown
ai:metafront matter for rules and prompts - β File references exist
- β Circular dependency detection for agent references
Print merged configuration for a specific profile.
# Print base configuration
versa print
# Print with profile merged
versa print --profile cursor
# Output to file
versa print --profile windsurf > windsurf-config.json
# Pretty print
versa print --pretty
# Show merge details
versa print --profile cursor --show-mergesAssemble complete context payload for an agent.
# Generate context for an agent
versa context --agent code-reviewer
# With specific profile
versa context --agent code-reviewer --profile cursor
# Output formats
versa context --agent code-reviewer --format json
versa context --agent code-reviewer --format yamlcd my-project
versa init
# Or minimal scaffold
versa init --minimal# Add to your CI pipeline
npm run lint && versa lint# Cursor
versa context --profile cursor > .cursor-context.json
# Windsurf
versa context --profile windsurf > .windsurf-context.json
# Claude
versa context --profile claude > .claude-context.jsonversa diffversa previewversa importversa templatesversa watchversa lint --fix- Template scaffolds for
versa init --template
# Clone repository
git clone https://github.com/dotAIslash/dotaislash-cli.git
cd dotaislash-cli
# Install dependencies
pnpm install
# Run in development
pnpm dev
# Build
pnpm build
# Run tests
pnpm test
# Lint code
pnpm lint- π CLI Reference
- π― Command Guide
- π§© API Documentation
- π Configuration Options
- π¨ Template Guide
Contributions welcome! See CONTRIBUTING.md for guidelines.
- π Report bugs and issues
- π‘ Suggest new commands or features
- π Improve documentation
- π§ͺ Add tests
- π¨ Create templates
MIT Β© dotAIslash