CLI Reference

All CLI flags and options.

Usage

aspectcode [options]
aspectcode <command>

Run in your project root. Requires login (run aspectcode login first).

Commands

CommandDescription
aspectcode loginSign in via browser (Google OAuth)
aspectcode login Sign in with a code from the dashboard
aspectcode logoutClear stored credentials
aspectcode whoamiShow current logged-in user

When no command is given, the default behavior is to analyze and watch.

Flags

FlagDescription
--onceRun once and exit (no watch mode)
--dry-runPreview without writing files (use with --once)
--provider LLM provider (openai, anthropic, or grok)
--model Model override
--temperature Sampling temperature (0–2)
--compactCompact dashboard layout
--cursorTarget Cursor instead of Claude Code
--verboseDebug output
--quietSuppress non-error output
--root Explicit workspace root
--no-colorPlain text output
--helpShow help
--versionShow version

Environment variables

VariableDescription
OPENAI_API_KEYEnables LLM optimization via OpenAI
ANTHROPIC_API_KEYEnables LLM optimization via Anthropic

When an API key is set, the evaluator and optimizer run automatically after static analysis. Without a key, AGENTS.md is generated through static analysis alone.