Commands Reference

Complete reference for all LynxPrompt CLI commands, options, and flags.

Quick Reference

CommandDescription
lynxp loginAuthenticate with LynxPrompt
lynxp wizardGenerate AI config interactively (recommended)
lynxp analyzeAnalyze project tech stack (local or remote)
lynxp convertConvert between config formats
lynxp mergeMerge multiple config files
lynxp importScan repo for AGENTS.md files and AI commands
lynxp checkValidate AI config files (CI/CD)
lynxp statusShow config status and tracked blueprints
lynxp pull <id>Download and track a blueprint
lynxp pushPush local file or command to cloud
lynxp search <query>Search marketplace blueprints
lynxp listList your blueprints
lynxp linkLink local file to cloud blueprint (interactive)
lynxp unlinkDisconnect file from cloud blueprint (interactive)
lynxp diffCompare all tracked files with cloud
lynxp agentsManage AI agents

Note: lynxp is an alias for lynxprompt.

lynxp wizard

The recommended way to generate AI configuration files. Interactive wizard that creates AGENTS.md, .cursor/rules/, or any other format based on your choices.

lynxp wizard [options]

Basic Options:
  -n, --name <name>         Project name
  -d, --description <desc>  Project description
  -s, --stack <stack>       Tech stack (comma-separated)
  -f, --format <format>     Output: agents, cursor, copilot, etc.
  --persona <persona>       AI persona (fullstack, backend, frontend, etc.)
  --boundaries <level>      Boundary preset (conservative, standard, permissive)
  -y, --yes                 Skip prompts, use defaults

Advanced Options:
  -o, --output <dir>        Output directory
  --repo-url <url>          Analyze remote repository (GitHub/GitLab)
  --blueprint               Generate with [[VAR|default]] placeholders
  --license <type>          License type (mit, apache-2.0, gpl-3.0)
  --ci-cd <platform>        CI/CD platform (github_actions, gitlab_ci)
  --project-type <type>     Project type (work, leisure, opensource)
  --detect-only             Only detect project info, don't generate
  --load-draft <name>       Load a saved wizard draft
  --save-draft <name>       Save wizard state as draft
  --vars <values>           Fill variables: VAR1=val1,VAR2=val2

Examples

# Interactive wizard (recommended)
$ lynxp wizard

# Quick generation with defaults
$ lynxp wizard -y

# Generate for Cursor
$ lynxp wizard -f cursor

# Analyze remote repo first
$ lynxp wizard --repo-url https://github.com/owner/repo

# Generate blueprint template
$ lynxp wizard --blueprint
# Output: [[PROJECT_NAME|MyApp]] configuration...

# Fill blueprint variables
$ lynxp wizard --blueprint --vars "PROJECT_NAME=MyApp,LICENSE=MIT"

# Save/load drafts
$ lynxp wizard --save-draft myproject
$ lynxp wizard --load-draft myproject

Remote Repository Detection

Analyze remote repositories via GitHub or GitLab API to auto-detect tech stack, databases, CI/CD, Docker, and more. For other hosts, a shallow clone is used automatically.

lynxp analyze

Analyze project configuration and tech stack without generating files. Supports local directories and remote repositories (GitHub, GitLab).

lynxp analyze [options]

Options:
  -r, --remote <url>    Analyze remote repository
  -j, --json            Output as JSON (for scripting)

Examples

# Analyze current directory
$ lynxp analyze
šŸ“Š Project Analysis
  Name: my-project
  Stack: typescript, react, tailwind
  Package Manager: npm
  CI/CD: github_actions

# Analyze remote repository
$ lynxp analyze -r https://github.com/owner/repo

# JSON output for scripts
$ lynxp analyze --json | jq '.detected.stack'

lynxp convert

Convert AI configuration files between formats. Useful for migrating between editors or generating multiple formats from a single source.

lynxp convert [source] <target>

Arguments:
  source    Source file (auto-detected if omitted)
  target    Target format: agents, cursor, copilot, windsurf, etc.

Options:
  -o, --output <file>   Output filename
  -f, --force           Overwrite existing file

Examples

# Convert AGENTS.md to Cursor format
$ lynxp convert AGENTS.md cursor
āœ“ Converted to .cursor/rules/project.mdc

# Auto-detect source and convert
$ lynxp convert cursor

# Custom output filename
$ lynxp convert AGENTS.md copilot -o team-rules.md

lynxp merge

Merge two or more AI configuration files into one. Useful for combining team rules, project-specific configs, or rules from different sources.

lynxp merge <file1> <file2> [...files]

Options:
  -o, --output <file>      Output filename (default: merged.md)
  -s, --strategy <type>    Merge strategy: concat, sections, smart
  -f, --force              Overwrite existing file
  -i, --interactive        Review and select sections to include

Examples

# Merge two config files
$ lynxp merge team-rules.md project-rules.md
āœ“ Merged to merged.md

# Custom output and strategy
$ lynxp merge a.md b.md c.md -o combined.md -s smart

# Interactive mode to select sections
$ lynxp merge rules1.md rules2.md -i

Merge Strategies

  • concat — Simple concatenation with separators
  • sections — Group by section title
  • smart — Dedupe similar content (default)

lynxp import

Scan a repository for existing AGENTS.md files, AI commands, and understand your monorepo structure. Perfect for discovering AI configurations and slash commands across large codebases.

lynxp import [path] [options]

Arguments:
  path              Directory to scan (default: current directory)

Options:
  --dry-run         Preview what would be imported
  --no-recursive    Don't scan subdirectories
  --depth <n>       Max directory depth to scan (default: 10)
  --pattern <file>  Custom config filename to look for
  --link            Link found files to cloud (requires login)
  -v, --verbose     Show detailed section information
  -j, --json        Output as JSON (for scripting)

Examples

# Scan current directory
$ lynxp import
šŸ“„ LynxPrompt Import
   Found 4 configuration file(s)

šŸ¢ my-monorepo [Monorepo Root]
   AGENTS.md
   └─ šŸ“„ packages/web
      packages/web/AGENTS.md
   └─ šŸ“„ packages/api
      packages/api/AGENTS.md

šŸ“Š 1 monorepo detected with hierarchical configs

# Preview without changes
$ lynxp import --dry-run

# Scan specific directory
$ lynxp import ./packages --depth 3

# JSON output for scripting
$ lynxp import --json | jq '.hierarchy'

What it detects

šŸ“‹ AI Rules & Configuration

  • • AGENTS.md — Universal AI config format
  • • CLAUDE.md — Claude Code format
  • • .cursorrules — Legacy Cursor format
  • • .windsurfrules — Windsurf format

⚔ AI Agent Commands (Slash Commands)

  • • .cursor/commands/*.md — Cursor commands
  • • .claude/commands/*.md — Claude Code commands
  • • .windsurf/workflows/*.md — Windsurf workflows
  • • .copilot/prompts/*.md — GitHub Copilot prompts
  • • .continue/prompts/*.md — Continue.dev prompts
  • • .opencode/commands/*.md — OpenCode commands

Monorepo Support: The import command automatically detects hierarchical configurations where package-level AGENTS.md files inherit from a root configuration. This information is saved to .lynxprompt/hierarchy.json for use by other commands.

lynxp check

Validate AI configuration files. Perfect for CI/CD pipelines and pre-commit hooks.

lynxp check [options]

Options:
  --ci    CI mode - exit codes only (0=pass, 1=fail)

Example

$ lynxp check
🐱 LynxPrompt Check

āœ“ Found 3 configuration files:
  AGENTS.md
  .cursor/rules/project.mdc
  .github/copilot-instructions.md

⚠ 1 warning:
  AGENTS.md: Contains placeholder text "TODO"

āœ… Validation passed!

# In CI/CD:
$ lynxp check --ci
āœ“ Validation passed

What it validates

  • • Empty or minimal content
  • • Placeholder text (TODO, FIXME, etc.)
  • • Potential secrets or API keys
  • • YAML frontmatter syntax (for .mdc files)
  • • LynxPrompt config file validity

lynxp pull

Download a blueprint from the marketplace and automatically track it for future updates.

lynxp pull <blueprint-id> [options]

Arguments:
  blueprint-id    The blueprint ID (e.g., bp_abc123)

Options:
  -o, --output <dir>    Output directory (default: current)
  -y, --yes             Skip confirmation prompts
  --preview             Preview content without downloading
  --no-track            Don't track for future syncs

Examples

# Download and track
$ lynxp pull bp_abc123
🐱 Blueprint: Next.js TypeScript Starter
   šŸ“¦ Marketplace blueprint (read-only)

āœ… Downloaded: AGENTS.md
   Linked to: bp_abc123
   Updates: Run 'lynxp pull bp_abc123' to sync updates

# Preview first
$ lynxp pull bp_abc123 --preview
# Shows content without writing file

# Without tracking
$ lynxp pull bp_abc123 --no-track

Blueprint Types

  • Marketplace - Read-only, can pull updates but not push changes
  • Team - Full sync, push and pull changes
  • Private - Your own, full control

lynxp link

Connect an existing local file to a cloud blueprint for tracking. Interactive mode guides you through the process when run without arguments.

lynxp link                         # Interactive mode (recommended)
lynxp link <file> <blueprint-id>   # Direct mode
lynxp link --list                  # List tracked blueprints

Interactive Example

$ lynxp link
🐱 Link File to Blueprint

? Which file do you want to link?
  → AGENTS.md
    .cursor/rules/project.mdc

? How do you want to find the blueprint?
  → šŸ“‹ From my blueprints
    šŸ” Search marketplace
    šŸ”¢ Enter ID directly

? Select a blueprint:
  → Next.js TypeScript Starter
    Team Standards

āœ… Linked: AGENTS.md → bp_abc123

# Or use direct mode:
$ lynxp link AGENTS.md bp_abc123

lynxp unlink

Disconnect a local file from its cloud blueprint. Interactive mode when run without arguments.

lynxp unlink           # Interactive mode (shows tracked files)
lynxp unlink <file>    # Direct mode

Example

$ lynxp unlink
🐱 Unlink File from Blueprint

? Which file do you want to unlink?
  → AGENTS.md (Next.js TypeScript Starter)
    .cursor/rules/project.mdc (Team Standards)

Currently linked to: Next.js TypeScript Starter
   ID: bp_abc123
   Source: marketplace

? Unlink AGENTS.md? Yes

āœ… Unlinked: AGENTS.md

lynxp diff

Compare tracked files with their cloud blueprints. Run without arguments to check all tracked files at once.

lynxp diff                   # Compare ALL tracked files with cloud
lynxp diff <file>            # Compare specific file with its blueprint
lynxp diff <blueprint-id>    # Compare with specific blueprint
lynxp diff --local           # Compare .lynxprompt/rules/ with exports

Examples

# Compare all tracked files (recommended)
$ lynxp diff
🐱 LynxPrompt Diff

šŸ“„ AGENTS.md
   Linked to: Next.js Starter (bp_abc123)
   āœ“ In sync with cloud

šŸ“„ .cursor/rules/project.mdc
   Linked to: Team Standards (bp_team456)
- Old line
+ New line
   +2 -1 lines

To push local changes: lynxp push

# Compare specific file
$ lynxp diff AGENTS.md

# Compare with untracked blueprint
$ lynxp diff bp_newid123

lynxp status

Show current AI configuration status including tracked blueprints and local files.

lynxp status

Example output

$ lynxp status

🐱 LynxPrompt Status
   Directory: /Users/me/my-project

āœ“ LynxPrompt initialized
   Exporters: cursor, agents

šŸ“¦ Tracked Blueprints

  āœ“ AGENTS.md [marketplace]
     ID: bp_abc123 • Next.js Starter

  ā— .cursor/rules/project.mdc [team]
     ID: bp_team456 • Team Standards
     ⚠ Local changes - run 'lynxp push' to sync

šŸ“„ AI Config Files

  āœ“ AGENTS.md (tracked)
     Platform: Claude Code, Cursor, AI Agents
     Size: 2.1 KB (85 lines)

  āœ“ .cursor/rules/ (tracked)
     Platform: Cursor
     Rules: 3 files

  āœ“ .github/copilot-instructions.md
     Platform: GitHub Copilot
     Size: 1.2 KB (42 lines)

lynxp search

Search public blueprints in the LynxPrompt marketplace. No authentication required.

lynxp search <query> [options]

Arguments:
  query           Search terms

Options:
  --limit <n>     Maximum results (default: 20)

Authentication Commands

lynxp login

Opens browser to authenticate

lynxp logout

Remove stored credentials

lynxp whoami

Show current user

Environment Variables

VariableDescription
LYNXPROMPT_TOKENAPI token for CI/CD (skips browser auth)
LYNXPROMPT_API_URLCustom API URL (default: https://lynxprompt.com)

Need more help?

Check the FAQ or reach out to our support team.

Troubleshooting