CLI Usage Simulation
The aios CLI prepares your workspace. It creates files, validates structure, and recommends next steps. It does not write PRDs, fill templates, implement code, or make architecture decisions.
This guide walks through two scenarios: starting a new project and adopting an existing one.
New Project Simulation
Section titled “New Project Simulation”Step 1: Install AIOS
Section titled “Step 1: Install AIOS”npm install -g @donihadimas/aiosaios --versionWhat this does: Installs the CLI globally. No project files are created yet.
Step 2: Create the project
Section titled “Step 2: Create the project”aios init demo-projectWhat AIOS writes:
demo-project/docs/- Product, architecture, ADR, task, review, and context foldersdemo-project/.aios/- Skills, templates, prompts, references, workflows, commands, integrations, configdemo-project/AGENTS.md- Agent routing instructionsdemo-project/README.md- Project overview
Optional: If you select native skill delivery, AIOS also creates agent-specific folders:
demo-project/.agents/skills/- For Codex or generic agentsdemo-project/.qwen/skills/- For Qwen Codedemo-project/.opencode/skills/- For OpenCodedemo-project/.agent/skills/- For Antigravity
What AIOS does not do: Does not install npm dependencies, does not create app code, does not choose a framework.
Step 3: Validate the setup
Section titled “Step 3: Validate the setup”cd demo-projectaios validateWhat this does: Checks that expected files exist. Prints OK or lists missing items.
Step 4: Ask what to do next
Section titled “Step 4: Ask what to do next”aios nextWhat this does: Prints a recommendation like “Run product discovery with your AI agent.” This is read-only. No files are changed.
Step 5: Create document stubs
Section titled “Step 5: Create document stubs”aios create feature "Habit reminders"aios create adr "Use server date for completion"aios create task "Implement habit API"aios create review "Habit API"aios create release "0.3.1"What AIOS writes: Each command creates a Markdown stub file from a template:
- Feature PRD in
docs/product/features/ - ADR in
docs/adr/ - Task in
docs/tasks/ - Review report in
docs/reviews/ - Release notes in
docs/releases/
The exact filenames are generated by the CLI based on the command type, provided name, and existing numbered files where applicable.
What AIOS does not do: Does not fill the content. The stubs have headers and placeholder sections. Your AI agent or you fill them in.
Step 6: Inspect the config
Section titled “Step 6: Inspect the config”aios configWhat this does: Prints the resolved project config including mode, docsRoot, projectShape, and agent settings. Read-only.
Existing Project Adoption Simulation
Section titled “Existing Project Adoption Simulation”Step 1: Navigate to your project
Section titled “Step 1: Navigate to your project”cd my-existing-projectStep 2: Adopt AIOS
Section titled “Step 2: Adopt AIOS”aios adoptWhat AIOS writes:
docs/- Adds missing documentation folders.aios/- Installs the local workflow kitAGENTS.md- Adds agent routing instructionsREADME.md- Updates if missing
What AIOS does not do: Never overwrites existing files. If a file already exists, it is skipped.
Step 3: Validate
Section titled “Step 3: Validate”aios validateWhat this does: Checks the adopted structure. Reports any missing expected files.
Step 4: Check next step
Section titled “Step 4: Check next step”aios nextWhat this does: Prints the recommended next action based on what files already exist in your project.
What the CLI Does and Does Not Do
Section titled “What the CLI Does and Does Not Do”| The CLI Does | The CLI Does Not Do |
|---|---|
| Create project structure | Write application code |
Install .aios/ workflow kit | Fill PRD or template content |
| Create document stubs from templates | Run an AI agent |
| Validate project structure | Install app dependencies |
| Recommend next steps | Apply database migrations |
| Manage integration rules | Deploy or publish |
| Install skills to native agent folders | Make architecture decisions |
After CLI Setup
Section titled “After CLI Setup”Once the CLI has prepared your workspace, the next step is to open an AI coding agent and ask it to fill the document stubs. The agent reads the skills, templates, and prompts from .aios/ and follows the workflow.
See the AI Agent Simulation guide for what to ask your agent after CLI setup.
Related Pages
Section titled “Related Pages”- Command Guide - Choose the right command for your situation
- CLI Reference - Full command syntax and options
- AI Agent Simulation - What to ask your agent next
- Project Structure - File and folder layout
- Building Blocks - What each artifact type does