Skip to content

CLI

Terminal window
npx aeo.js <command> [options]

Generate all AEO files (robots.txt, llms.txt, sitemap.xml, etc.):

Terminal window
npx aeo.js generate
npx aeo.js generate --url https://mysite.com --title "My Site" --out public

Create an aeo.config.ts configuration file in your project:

Terminal window
npx aeo.js init

This generates a starter config with all options documented.

Validate your AEO setup and show what would be generated:

Terminal window
npx aeo.js check
FlagDescription
--out <dir>Output directory (default: auto-detected)
--url <url>Site URL
--title <title>Site title
--no-widgetDisable widget generation
--help, -hShow help
--version, -vShow version

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.