CLI Reference
Complete documentation for all termiflow commands, flags, and usage patterns. All commands support --help for detailed usage information.
Command Overview
| COMMAND | DESCRIPTION |
|---|---|
| ask | Ask a question and get an AI-powered answer with sources |
| subscribe | Subscribe to a topic for curated updates |
| unsubscribe | Remove a topic subscription |
| feed | Display curated feed items from subscriptions |
| topics | List available predefined topics and current subscriptions |
| config | View and modify configuration |
| status | Show current configuration and system health |
| upgrade | Check for newer versions and show upgrade instructions |
| changelog | Show release notes from recent versions |
| version | Show version and build information |
Global Flags
These flags are available on all commands.
| FLAG | TYPE | DESCRIPTION |
|---|---|---|
| --config | string | Specify custom config file path |
| --provider | string | Override LLM provider (openai, anthropic, local) |
| --quiet, -q | bool | Suppress non-essential output |
| --debug | bool | Enable debug logging |
| --no-color | bool | Disable colored output |
| --json | bool | Output as structured JSON |
ask
CoreAsk a question and get an AI-powered answer synthesized from multiple sources. Results are streamed to your terminal in real-time with source attribution.
Flags
| FLAG | TYPE | DESCRIPTION | DEFAULT |
|---|---|---|---|
| --sources | int | Number of sources to retrieve and synthesize | 5 |
| --no-search | bool | Use LLM knowledge only, skip web search | false |
| --save | bool | Save query and response to history | false |
| --provider | string | LLM provider: openai, anthropic, or local | config |
Examples
subscribe
CoreSubscribe to a topic for curated updates. You can subscribe to predefined categories or create custom free-form topics. Updates are fetched and curated by AI based on your chosen frequency.
Flags
| FLAG | TYPE | DESCRIPTION | DEFAULT |
|---|---|---|---|
| --hourly | bool | Get updates every hour | false |
| --daily | bool | Get updates once per day | true |
| --weekly | bool | Get updates once per week | false |
| --sources | string | Comma-separated source types: tavily, rss, scrape | all |
Examples
unsubscribe
Remove a topic subscription. Your existing feed items for that topic are preserved unless you run a cleanup.
Flags
| FLAG | TYPE | DESCRIPTION | DEFAULT |
|---|---|---|---|
| --all | bool | Unsubscribe from all topics (requires confirmation) | false |
| --force | bool | Skip confirmation prompt | false |
Examples
feed
CoreDisplay curated feed items from your subscriptions. Items are sorted by relevance and recency, with AI-generated summaries and tags.
Flags
| FLAG | TYPE | DESCRIPTION | DEFAULT |
|---|---|---|---|
| --topic | string | Filter feed by subscription topic | all |
| --today | bool | Show only today's items | false |
| --week | bool | Show items from the past week | false |
| --limit | int | Maximum number of items to display | 20 |
| --refresh | bool | Fetch new items before displaying | false |
| --all | bool | Include already-read items | false |
Examples
topics
List available predefined topics and your current subscriptions. Predefined topics come with curated sources and optimized search keywords.
Flags
| FLAG | TYPE | DESCRIPTION | DEFAULT |
|---|---|---|---|
| --available | bool | Show only predefined categories | false |
| --subscribed | bool | Show only your active subscriptions | false |
Examples
config
View and modify termiflow configuration. Configuration is stored in ~/.config/termiflow/config.toml. API keys can also be set via environment variables.
Subcommands
| COMMAND | ARGUMENTS | DESCRIPTION |
|---|---|---|
| init | — | Interactive first-time setup wizard |
| get | <key> | Get a configuration value |
| set | <key> <value> | Set a configuration value |
| --edit | — | Open config file in $EDITOR |
| path | — | Print config file location |
Examples
status
SystemShow current configuration summary, provider info, API health, active subscriptions with item counts, and database stats.
Flags
| FLAG | TYPE | DESCRIPTION | DEFAULT |
|---|---|---|---|
| --json | bool | Output as structured JSON | false |
Output Includes
- + Current mode (Managed or Self-hosted)
- + LLM provider and model info
- + API health check (managed mode)
- + Active subscriptions with last fetch timestamps
- + Per-subscription item counts (total and unread)
- + Database size and config file path
upgrade
SystemCheck for newer versions of termiflow on GitHub. Shows semantic version comparison and upgrade instructions. Uses ETag-based caching for offline fallback.
changelog
SystemShow release notes from recent versions, fetched from GitHub. Marks your current version and color-codes changelog tags (New, Fix, Breaking, Changed, Removed). Uses ETag caching for offline access.
Flags
| FLAG | TYPE | DESCRIPTION | DEFAULT |
|---|---|---|---|
| --all | bool | Show all releases (up to 30) instead of latest 3 | false |
version
Display version information including build date, git commit, Go version, and platform.