Composite Commands Reference
What are Composite Commands?
Section titled “What are Composite Commands?”Composite commands let you chain multiple Askimo actions into a single command-line invocation — extending their power for automation, scripting, and seamless workflow execution.
Syntax
Section titled “Syntax”askimo --command1 [args] --command2 [args] --command3 [args] ...Common Patterns
Section titled “Common Patterns”Quick Setup
Section titled “Quick Setup”# Configure everything at onceaskimo --set-provider openai \ --set-param api_key sk-abc123 \ --set-param model gpt-4o \ --configEnvironment Switching
Section titled “Environment Switching”# Switch to Ollama with custom settingsaskimo --set-provider ollama \ --set-param model llama2 \ --set-param temperature 0.7Multiple Parameters
Section titled “Multiple Parameters”# Fine-tune model parametersaskimo --set-param temperature 0.8 \ --set-param max_tokens 2000 \ --set-param top_p 0.95Information Gathering
Section titled “Information Gathering”# Get overview of available resourcesaskimo --providers --models --tools
# Check configuration and versionaskimo --config --versionVerification
Section titled “Verification”# Set and verify in one commandaskimo --set-provider openai --set-param model gpt-4o --configAll Combinable Commands
Section titled “All Combinable Commands”| Command | Arguments | Example |
|---|---|---|
--set-provider | provider_name | --set-provider openai |
--set-param | key value | --set-param model gpt-4o |
--config | none | --config |
--providers | none | --providers |
--models | none | --models |
--params | optional: —list | --params --list |
--tools | none | --tools |
--version | none | --version |
--help | none | --help |
--create-recipe | name, -f file | --create-recipe -f file.yml |
--recipes | none | --recipes |
--delete-recipe | name or —all | --delete-recipe old |
✅ DO: Order commands logically (provider before parameters)
askimo --set-provider openai --set-param model gpt-4o✅ DO: End with verification commands
askimo --set-param temperature 0.7 --config✅ DO: Use the same command multiple times
askimo --set-param key1 val1 --set-param key2 val2 --set-param key3 val3⚠️ AVOID: Mixing interactive and non-interactive modes
# ❌ Won't work - :clear is interactive-onlyaskimo --config :clear --set-provider openaiShell Aliases
Section titled “Shell Aliases”Create convenient aliases for common combinations:
# In your ~/.zshrc or ~/.bashrcalias askimo-gpt4='askimo --set-provider openai --set-param model gpt-4o'alias askimo-claude='askimo --set-provider anthropic --set-param model claude-3-opus'alias askimo-local='askimo --set-provider ollama --set-param model llama2'alias askimo-info='askimo --version --config --providers'Usage:
$ askimo-gpt4 --config$ askimo-local --models$ askimo-infoScripting Example
Section titled “Scripting Example”#!/bin/bash# setup-askimo-env.sh
PROVIDER="${1:-openai}"MODEL="${2:-gpt-4o}"API_KEY="${OPENAI_API_KEY}"
askimo --set-provider "$PROVIDER" \ --set-param api_key "$API_KEY" \ --set-param model "$MODEL" \ --config
echo "✅ Askimo configured: $PROVIDER with $MODEL"Usage:
$ ./setup-askimo-env.sh openai gpt-4o$ ./setup-askimo-env.sh ollama llama2