Command Line Interface (CLI) Tools 🔗

The SignalWire Agents SDK provides several command-line tools to help with development, testing, and deployment.

Available Commands 🔗

sw-search - Build Search Indexes 🔗

Build local search indexes from document collections for use with the native vector search skill.

sw-search <source_dir> [options]

Arguments:

Options:

Subcommands:

validate - Validate Search Index 🔗

sw-search validate <index_file> [options]

Arguments:

Options:

search - Search Within Index 🔗

sw-search search <index_file> <query> [options]

Arguments:

Options:

Examples:

# Build from the comprehensive concepts guide
sw-search docs/signalwire_agents_concepts_guide.md --output concepts.swsearch

# Build from multiple sources
sw-search docs/signalwire_agents_concepts_guide.md examples README.md --output comprehensive.swsearch

# Validate an index
sw-search validate concepts.swsearch

# Search within an index  
sw-search search concepts.swsearch "how to create an agent"
sw-search search concepts.swsearch "API reference" --count 3 --verbose
sw-search search concepts.swsearch "configuration" --tags documentation --json

# Traditional directory approach
sw-search docs --output docs.swsearch

For complete documentation on the search system, see Local Search System.

swaig-test - Test SWAIG Functions 🔗

Test SignalWire AI Agent SWAIG functions and SWML generation locally.

swaig-test <agent_file> [function_name] [options]

Key Features:

Examples:

# List available agents
swaig-test examples/my_agent.py --list-agents

# List available functions
swaig-test examples/my_agent.py --list-tools

# Test SWML generation
swaig-test examples/my_agent.py --dump-swml

# Test a specific function
swaig-test examples/my_agent.py --exec my_function --param value

# Simulate serverless environment
swaig-test examples/my_agent.py --simulate-serverless lambda --dump-swml

For complete documentation, see CLI Testing Guide.

Installation 🔗

All CLI tools are included when you install the SignalWire Agents SDK:

pip install signalwire-agents

# For search functionality
pip install signalwire-agents[search]

# For full functionality
pip install signalwire-agents[search-all]

Getting Help 🔗

Each command provides help information:

# General help
sw-search --help

# SWAIG testing help
swaig-test --help