Commands Reference
Complete reference for all LynxPrompt CLI commands, options, and flags.
Quick Reference
| Command | Description |
|---|---|
lynxp login | Authenticate with LynxPrompt |
lynxp wizard | Generate AI config interactively (recommended) |
lynxp analyze | Analyze project tech stack (local or remote) |
lynxp convert | Convert between config formats |
lynxp merge | Merge multiple config files |
lynxp import | Scan repo for AGENTS.md files and AI commands |
lynxp check | Validate AI config files (CI/CD) |
lynxp status | Show config status and tracked blueprints |
lynxp pull <id> | Download and track a blueprint |
lynxp push | Push local file or command to cloud |
lynxp search <query> | Search marketplace blueprints |
lynxp list | List your blueprints |
lynxp link | Link local file to cloud blueprint (interactive) |
lynxp unlink | Disconnect file from cloud blueprint (interactive) |
lynxp diff | Compare all tracked files with cloud |
lynxp agents | Manage 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=val2Examples
# 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 myprojectRemote 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 fileExamples
# 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.mdlynxp 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 includeExamples
# 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 -iMerge 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 passedWhat 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 syncsExamples
# 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-trackBlueprint 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 blueprintsInteractive 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_abc123lynxp 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 modeExample
$ 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.mdlynxp 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 exportsExamples
# 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_newid123lynxp status
Show current AI configuration status including tracked blueprints and local files.
lynxp statusExample 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 loginOpens browser to authenticate
lynxp logoutRemove stored credentials
lynxp whoamiShow current user
Environment Variables
| Variable | Description |
|---|---|
LYNXPROMPT_TOKEN | API token for CI/CD (skips browser auth) |
LYNXPROMPT_API_URL | Custom API URL (default: https://lynxprompt.com) |
Need more help?
Check the FAQ or reach out to our support team.