-
Notifications
You must be signed in to change notification settings - Fork 2
CLI Commands
github-actions[bot] edited this page Oct 16, 2025
·
10 revisions
Complete reference for all Sylphx Flow CLI commands.
npx github:sylphxltd/flow <command> [subcommand] [options]Initialize your project with Sylphx Flow development agents and MCP tools.
npx github:sylphxltd/flow init [options]-
--agent <type>- Force specific agent (opencode, cursor, kilocode, roocode) -
--verbose- Show detailed output -
--dry-run- Show what would be done without making changes -
--clear- Clear obsolete items before processing -
--no-mcp- Skip MCP tools installation
# Default initialization
npx github:sylphxltd/flow init
# Preview changes
npx github:sylphxltd/flow init --dry-run
# Initialize without MCP tools
npx github:sylphxltd/flow init --no-mcp
# Verbose output
npx github:sylphxltd/flow init --verbose
# Clear existing setup first
npx github:sylphxltd/flow init --clearManage the Sylphx Flow memory database directly from the command line.
npx github:sylphxltd/flow memory [subcommand] [options]npx github:sylphxltd/flow memory statsOutput:
π Memory Statistics
==================
Total Entries: 15
Namespaces: 3
Namespaces:
β’ default: 5 entries
β’ user: 8 entries
β’ project: 2 entries
Oldest Entry: 16/10/2024, 17:00:00
Newest Entry: 16/10/2024, 17:03:20
π Database: .sylphx-flow/memory.db
npx github:sylphxltd/flow memory list [options]Options:
-
--namespace <name>- Filter by namespace -
--limit <number>- Limit number of entries (default: 50)
Examples:
# List all entries
npx github:sylphxltd/flow memory list
# List specific namespace
npx github:sylphxltd/flow memory list --namespace "user"
# Limit results
npx github:sylphxltd/flow memory list --limit 10npx github:sylphxltd/flow memory search --pattern <pattern> [options]Options:
-
--pattern <pattern>- Search pattern (supports * wildcards) [REQUIRED] -
--namespace <name>- Filter by namespace
Examples:
# Search for theme-related entries
npx github:sylphxltd/flow memory search --pattern "*theme*"
# Search within namespace
npx github:sylphxltd/flow memory search --pattern "config/*" --namespace "project"
# Exact match
npx github:sylphxltd/flow memory search --pattern "user-settings"npx github:sylphxltd/flow memory delete --key <key> [options]Options:
-
--key <key>- Memory key to delete [REQUIRED] -
--namespace <name>- Namespace (default: default)
Examples:
# Delete from default namespace
npx github:sylphxltd/flow memory delete --key "old-data"
# Delete from specific namespace
npx github:sylphxltd/flow memory delete --key "temp-file" --namespace "cache"npx github:sylphxltd/flow memory clear [options]Options:
-
--namespace <name>- Clear specific namespace (optional) -
--confirm- Confirm the clear operation [REQUIRED]
Examples:
# Clear specific namespace
npx github:sylphxltd/flow memory clear --namespace "temp" --confirm
# Clear all data
npx github:sylphxltd/flow memory clear --confirmnpx github:sylphxltd/flow memory tuiNote: TUI is coming soon. Currently shows usage information.
Manage MCP (Model Context Protocol) tools and servers.
npx github:sylphxltd/flow mcp [subcommand] [options]npx github:sylphxltd/flow mcp startStarts the Sylphx Flow MCP server for AI agent integration.
npx github:sylphxltd/flow mcp install [servers...] [options]Arguments:
-
servers...- MCP tools to install (memory, everything, gpt-image, perplexity, context7, gemini-search)
Options:
-
--all- Install all available MCP tools -
--dry-run- Show what would be done without making changes
Examples:
# Install specific tools
npx github:sylphxltd/flow mcp install memory everything
# Install all tools
npx github:sylphxltd/flow mcp install --all
# Preview installation
npx github:sylphxltd/flow mcp install --all --dry-runnpx github:sylphxltd/flow mcp listOutput:
π§ Available MCP Tools:
====================
memory - Agent coordination & memory
everything - Filesystem, web, git tools
gpt-image-1-mcp - GPT image generation
perplexity-ask - Perplexity search
gemini-google-search - Google search via Gemini
context7 - Context management
npx github:sylphxltd/flow mcp config <server>Arguments:
-
server- MCP server to configure (gpt-image, perplexity, gemini-search)
Examples:
# Configure GPT Image tool
npx github:sylphxltd/flow mcp config gpt-image
# Configure Perplexity tool
npx github:sylphxltd/flow mcp config perplexity
# Configure Gemini Search tool
npx github:sylphxltd/flow mcp config gemini-search
β οΈ DEPRECATED: Useflow initinstead. Kept for backward compatibility.
npx github:sylphxltd/flow sync [options]-
--agent <type>- Force specific agent (cursor, kilocode, roocode) -
--verbose- Show detailed output -
--dry-run- Show what would be done without making changes -
--clear- Clear obsolete items before processing
# Legacy usage (not recommended)
npx github:sylphxltd/flow sync --agent=cursor
npx github:sylphxltd/flow sync --dry-runThese options can be used with any command:
-
--help, -h- Show help for command -
--version, -v- Show version number
β
Operation completed successfully
β
Memory entry deleted: default:test-key
β
MCP tools installed
β Error: Invalid option
β Memory entry not found: default:missing-key
β Please use --confirm to clear memory entries
β οΈ WARNING: The "sync" command is deprecated
β οΈ Database file not found, creating new one
βΉοΈ Database: .sylphx-flow/memory.db
βΉοΈ Found 15 entries
βΉοΈ No changes required
# Initialize project
npx github:sylphxltd/flow init
# Check memory system
npx github:sylphxltd/flow memory stats
# Start MCP server
npx github:sylphxltd/flow mcp start# Check what's stored
npx github:sylphxltd/flow memory list
# Search for specific data
npx github:sylphxltd/flow memory search --pattern "*config*"
# Clean up old data
npx github:sylphxltd/flow memory clear --namespace "temp" --confirm# Install all MCP tools
npx github:sylphxltd/flow mcp install --all
# Configure API keys
npx github:sylphxltd/flow mcp config gpt-image
# List available tools
npx github:sylphxltd/flow mcp list# Check system status
npx github:sylphxltd/flow memory stats
# Test with dry run
npx github:sylphxltd/flow init --dry-run
# Verbose output for debugging
npx github:sylphxltd/flow init --verbose| Error Code | Description | Solution |
|---|---|---|
INVALID_OPTION |
Unknown command option | Check --help for valid options |
FILE_NOT_FOUND |
Database or config file missing | Run flow init to create |
PERMISSION_DENIED |
Insufficient file permissions | Check directory permissions |
INVALID_JSON |
Corrupted JSON file | Restore from backup or reinitialize |
NETWORK_ERROR |
Failed to download tools | Check internet connection |
API_KEY_MISSING |
Required API key not configured | Use flow mcp config <server>
|
Related: Memory System, Installation & Setup