Skip to content
GEO AI
AnalyzerCLIDocumentationSpecificationContact
Documentation

Getting Started

  • Introduction
  • Quick Start
  • Choose Your Package

GEO Specification

  • Overview
  • llms.txt
  • AI Metadata
  • Crawler Rules
  • Structured Signals
  • Scoring
  • Recommendations

Packages

  • GEO AI Core
  • GEO AI Next
  • GEO AI Woo
  • GEO AI Shopify

Analyzer

  • Overview
  • Scoring
  • Recommendations

CLI

  • GEO AI CLI

Integrations

  • NestJSsoon
  • Laravelsoon

Reference

  • Configuration
  • API Reference
  • FAQ
DocsIntegrationsCli

GEO AI CLI

geo-ai-cli — generate and validate llms.txt / llms-full.txt for any Node.js project. Works with any framework. Powered by geo-ai-core.

Overview

The CLI is a standalone tool for generating and validating the AI visibility files that GEO AI produces. It reads a geo-ai.config.ts (or .js / .json) file and writes llms.txt and llms-full.txt to your output directory.

It is framework-agnostic — use it with Next.js, Express, Fastify, or any static site generator. Zero runtime dependencies beyond geo-ai-core.

Installation

bash
# Local (recommended)
npm install --save-dev geo-ai-cli

# Global
npm install -g geo-ai-cli

Quick start

bash
# 1. Scaffold a config file
npx geo-ai init

# 2. Edit geo-ai.config.ts with your site details

# 3. Generate llms.txt and llms-full.txt into ./public
npx geo-ai generate

# 4. Validate the output
npx geo-ai validate

Build integration

Add geo-ai generate to your build script so files are always up to date before deployment.

Commands

geo-ai init

Scaffolds a geo-ai.config.ts starter file in the current directory. Exits safely without overwriting if a config already exists.

bash
geo-ai init

geo-ai generate

Generates llms.txt and llms-full.txt from your config and writes them to the output directory (default: ./public).

bash
geo-ai generate [--config <path>] [--out <path>]
FlagDefaultDescription
--configauto-discoverPath to config file
--out./publicOutput directory

Config discovery order: geo-ai.config.ts → geo-ai.config.js → geo-ai.config.json

geo-ai validate

Checks that llms.txt and llms-full.txt are present and have valid content. Supports both local files and remote URLs. Exits 1 on any failure.

bash
geo-ai validate [--path <dir>] [--url <url>]
FlagDefaultDescription
--path./publicLocal directory to check
--url—Remote base URL (fetches /llms.txt and /llms-full.txt)

geo-ai inspect

Previews your config: site info, crawler rules, resource sections with item counts. Optionally fetches and displays remote llms files via --url.

bash
geo-ai inspect [--config <path>] [--url <url>]

Config file

geo-ai.config.ts
import type { GeoAIConfig } from 'geo-ai-core';

export default {
  siteName: 'My Site',
  siteUrl: 'https://example.com',
  siteDescription: 'A brief description for AI crawlers.',
  crawlers: 'all',
  provider: {
    Pages: [
      { title: 'Home', url: 'https://example.com/', description: 'Welcome page' },
    ],
    Blog: [
      { title: 'Getting Started', url: 'https://example.com/blog/start', description: 'First steps' },
    ],
  },
} satisfies GeoAIConfig;

Required fields: siteName, siteUrl, provider.

Debug mode

Set DEBUG=geo-ai to print stack traces to stderr:

bash
DEBUG=geo-ai geo-ai generate

Requirements

  • Node.js >= 20
PreviousRecommendationsNextNestJS

On this page

  • Overview
  • Installation
  • Quick start
  • Commands
  • geo-ai init
  • geo-ai generate
  • geo-ai validate
  • geo-ai inspect
  • Config file
  • Debug mode
  • Requirements
GEO AI

AI Search Optimization

AnalyzerCLIDocumentationSpecificationContact

© 2026 GEO AI · Open Source · GPL-2.0 License