CLI
npx aeo.js <command> [options]Commands
Section titled “Commands”generate
Section titled “generate”Generate all AEO files (robots.txt, llms.txt, sitemap.xml, etc.):
npx aeo.js generatenpx aeo.js generate --url https://mysite.com --title "My Site" --out publicCreate an aeo.config.ts configuration file in your project:
npx aeo.js initThis generates a starter config with all options documented.
Validate your AEO setup and show what would be generated:
npx aeo.js checkOptions
Section titled “Options”| Flag | Description |
|---|---|
--out <dir> | Output directory (default: auto-detected) |
--url <url> | Site URL |
--title <title> | Site title |
--no-widget | Disable widget generation |
--help, -h | Show help |
--version, -v | Show version |
Configuration file
Section titled “Configuration file”The CLI looks for aeo.config.ts (or aeo.config.js) in your project root. Create one with npx aeo.js init:
import { defineConfig } from 'aeo.js';
export default defineConfig({ title: 'My Site', url: 'https://mysite.com', description: 'A site optimized for AI discovery', outDir: 'public',});See the full Configuration reference for all options.