CLI command reference
This reference lists every command in the flowda command tree with its usage line, flags, the /v1 endpoint it calls, and its credit cost where the source maps one. It follows the command reference that the CLI repository generates from its command tree and verifies against the embedded OpenAPI contract, so a command cannot drift from the contract without a test failing. Some flags are summarized here; the installed binary is authoritative for your version.
The installed binary is authoritative for your version. Run flowda <command> --help to confirm the flags, and see CLI for installation, authentication, output formats, and exit codes.
Conventions
[flags]means optional flags. A positional argument in angle brackets is required.- Global flags work on every command and are listed once, below. They are not repeated in each command's flag table.
- "Credits" is the amount the call costs.
0means the call is free. - A command that says "no endpoint" runs locally and sends no HTTP request.
Global flags
| Flag | Meaning |
|---|---|
-k, --api-key | API key in the form flw_.... Defaults to FLOWDA_API_KEY or the configuration file. |
--api-url | Developer API base URL. Defaults to https://openapi.flowda.ai or FLOWDA_API_URL. |
--envelope | Print the full {code,message,request_id,data} envelope. Implies --json. |
--http-timeout | Total client-side request budget, for example 180s. Defaults to the operation budget plus 30 seconds. |
--json | Machine mode: stdout carries JSON only. |
--no-color | Disable color. Equivalent to NO_COLOR=1. |
--no-validate | Skip local parameter validation and send the request as given. |
-o, --output | Write the result to a file. Writes JSON when the path ends in .json or --json is set. |
--pretty | Indent JSON. On by default in a terminal. |
--profile | Configuration profile. Defaults to FLOWDA_PROFILE or default. |
--quiet | Suppress prompts and the call summary. |
--token | Session JWT sent as a Bearer token. Defaults to FLOWDA_SESSION_TOKEN. Use an API key for scripts and agents. |
--verbose | Print request and response summaries to stderr, including request_id. |
-y, --yes | Skip the confirmation for a destructive operation. Required in a non-interactive environment. |
-h, --help | Print help for the command. |
-V, --version | Print the CLI version. |
Command groups
Read and change the API URL, credentials, and HTTP timeout, and switch the active profile.
Fetch one page as markdown, HTML, or links, then tune the cache, region, and content filters.
List a site's URLs with map, and search the web, news, shopping, or scholar sources.
List the published templates, inspect one, and run it with typed parameters.
Create, update, run, inspect, pause, resume, and delete page monitors.
Check identity, scopes, and quota, and list regions, search countries, and languages.
Check the API URL, the developer surface, the credential, and its scopes.
Fetch the OpenAPI document, open the docs URL, print the version, or generate shell completions.
completion
Generate a shell completion script. The script is printed to stdout; write it to the file your shell loads.
flowda completion [bash|zsh|fish|powershell]
No command-specific flags. Endpoint none. Credits 0.
flowda completion bash
flowda completion zsh
flowda completion fish
flowda completion powershell
config
View and change local configuration: the API URL, credentials, and the HTTP budget. The configuration file is config.json in the user configuration directory: %APPDATA%\flowda\config.json on Windows, ~/Library/Application Support/flowda/config.json on macOS, and $XDG_CONFIG_HOME/flowda/config.json (default ~/.config/flowda/config.json) on Linux. The directory is 0700 and the file is 0600.
flowda config
Writable keys are api-url, api-key, token, and http-timeout. Read-only keys are profile, default-profile, and config-path. Reading api-key or token prints a masked value. Endpoint none. Credits 0.
config get
Read one configuration value.
flowda config get <key>
Keys: api-url, api-key, token, http-timeout, profile, default-profile, config-path. No command-specific flags.
flowda config get api-url
flowda config get default-profile
config list
List all profiles.
flowda config list
No command-specific flags.
flowda config list
config path
Print the path of the configuration file.
flowda config path
No command-specific flags.
flowda config path
config set
Change a configuration value.
flowda config set <key> <value>
Writable keys: api-url, api-key, token, http-timeout. No command-specific flags.
flowda config set api-url https://openapi.flowda.ai
flowda config set http-timeout 120s
config unset
Remove a configuration value.
flowda config unset <key>
Removable keys: api-url, api-key, token, http-timeout. No command-specific flags.
flowda config unset api-key
flowda config unset http-timeout
config use-profile
Switch the default profile.
flowda config use-profile <name>
No command-specific flags.
flowda config use-profile staging
flowda config use-profile default
countries
List the search countries. The values are used by flowda search --country. This dictionary is not the egress region dictionary: extract, map, and watch use flowda regions.
flowda countries
No command-specific flags. Endpoint GET /v1/search/countries, public. Credits 0.
flowda countries
flowda countries --json
docs
Print or open the developer documentation URL. Without --open, the command prints the URL only.
flowda docs [flags]
| Flag | Meaning |
|---|---|
--open | Open the documentation page in the system default browser. |
Endpoint none; the command prints or opens <api-url>/v1/docs. Credits 0.
flowda docs
flowda docs --open
doctor
Check the environment: API URL reachability, whether the developer surface is enabled, the credential, and its scopes. Any failing check exits non-zero.
flowda doctor [flags]
| Flag | Meaning |
|---|---|
--need | Comma-separated scopes that must be present: extract, search, map, watch. |
Endpoint probes GET /v1/regions and GET /v1/account. Credits 0.
flowda doctor
flowda doctor --need extract,search,map,watch
Before you log in, the auth check fails and the command exits 1. That is expected.
extract
Fetch one page and return its content as markdown, raw_html, clean_html, or links.
flowda extract <url> [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--advanced-mode | boolean, true | Let the fetch service escalate its engine when page signals call for it. Keep the default when the page needs rendering. |
--country | string, US | Egress region as a two-letter uppercase code. Values come from flowda regions. |
--exclude-tag | string, repeatable | Remove nodes that match these CSS selectors. Removing all content returns 16002. |
-f, --format | string, repeatable, [markdown] | Output formats: markdown, raw_html, clean_html, links. Repeat the flag or separate values with commas. |
--header | k:v, repeatable | Request header forwarded to the target site. A custom header bypasses the cache and marks the URL for 48 hours. |
--include-tag | string, repeatable | Keep only nodes that match these CSS selectors. |
--max-age | duration, 48h | Maximum age of a cached snapshot, at most 48 hours. 0 forces a fresh fetch. |
--only-main-content | boolean, true | Keep the main content and drop navigation and footers. Write --only-main-content=false to include them. |
--timeout | duration, 60s | Per-fetch budget, from 1s to 120s. The client HTTP budget is the global --http-timeout. |
--url | string, positional | Target page URL. Give it as the positional argument or with --url, not both. |
--wait-for | duration, 0s | Extra wait after page load: at most 30s, and at most half of --timeout. |
Endpoint POST /v1/extract, scope extract. Credits 1 on a cache hit, 3, or 5.
flowda extract https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching
flowda extract https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching -f markdown,links --json
flowda extract https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching -f markdown -o page.md
flowda extract https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching --only-main-content=false --wait-for 2s --timeout 90s
flowda extract https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching --header "Accept-Language: en-US" --country JP
flowda extract https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching --include-tag "main" --exclude-tag "nav"
flowda extract https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching --max-age 0
One format is written as raw text. Several formats are written as JSON even without --json. links prints one URL per line.
languages
List the search languages. The values are used by flowda search --language and are case-sensitive, for example en, zh-cn, or pt-br.
flowda languages
No command-specific flags. Endpoint GET /v1/search/languages, public. Credits 0.
flowda languages
flowda languages --json
login
Save a credential to the current profile and validate it with GET /v1/account. On success, the command prints the authentication method, user ID, key ID, scopes, and daily quota.
flowda login [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--no-save | boolean, off | Validate only; do not write the configuration. |
--stdin | boolean, off | Read the credential from one line on stdin. |
login also accepts the global --api-key, --token, and --profile flags. Endpoint GET /v1/account. Credits 0.
flowda login
flowda login --api-key flw_live_...
echo "$FLOWDA_API_KEY" | flowda login --stdin
flowda login --profile staging
flowda login --api-key flw_live_... --no-save
Keys are created and revoked only in the Flowda console.
logout
Clear the credential for the current profile. The API URL and the rest of the configuration are kept.
flowda logout
No command-specific flags. Endpoint none. Credits 0.
flowda logout
flowda --profile staging logout
map
Enumerate the reachable URLs of a site. In human mode the command prints one URL per line, so it composes with pipes.
flowda map <url> [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--country | string, US | Egress region from flowda regions. |
--domain-filter | string, all | domain keeps only same-site URLs; all includes external links. |
--limit | integer, 5000 | Maximum number of URLs, from 1 to 100000. |
--sitemap | string, include | skip, include, or only. |
--url | string, positional | Site URL. Give it as the positional argument or with --url, not both. |
Endpoint POST /v1/map, scope map. Credits an integer; credits_used is absent when the call was not billed.
flowda map https://www.example.com | head -50
flowda map https://www.example.com --limit 500 --domain-filter domain --sitemap only -o urls.txt
flowda map https://www.example.com --limit 500 --domain-filter domain
flowda map https://www.example.com --sitemap only --json -o urls.json
openapi
Fetch the developer OpenAPI document, save it, or compare a local copy with the online one.
flowda openapi [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--check | string, unset | Compare a local specification file with the online specification. The command exits 1 when the contents differ. YAML and JSON are both accepted, and formatting differences are ignored. |
Use the global -o flag to save the document and --json to fetch the JSON variant. Endpoint GET /v1/openapi.yaml or GET /v1/openapi.json, public. Credits 0.
flowda openapi -o spec.yaml
flowda openapi --json -o spec.json
flowda openapi --check spec.yaml
flowda openapi
--check parses the file as YAML or JSON and compares the document with the online YAML contract structurally: a JSON copy or a reformatted YAML matches as long as the content is the same.
regions
List the egress regions. The values are used by flowda extract --country, flowda map --country, and flowda watch create --country. This dictionary is not the search country dictionary: search uses flowda countries.
flowda regions
No command-specific flags. Endpoint GET /v1/regions, public. Credits 0.
flowda regions
flowda regions --json
search
Search the web, and optionally extract the content of every result in the same call.
flowda search <query> [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--advanced-mode | boolean, true | Let the fetch service escalate its engine when page signals call for it. Keep the default when the page needs rendering. |
--country | string, unset | Two-letter uppercase ISO code from flowda countries. Not available with --source scholar. |
--exclude-tag | string, repeatable | Remove nodes that match these CSS selectors. Applies to content extraction. |
--extract-content | boolean, off | Also extract the content of every result. |
-f, --format | string, repeatable, [markdown] | Extraction formats. Only valid with --extract-content. |
--include-tag | string, repeatable | Keep only nodes that match these CSS selectors. Applies to content extraction. |
--language | string, unset | Result language, case-sensitive, from flowda languages. |
--max-age | duration, 48h | Maximum age of a cached snapshot. 0 forces a fresh fetch. Applies to content extraction. |
--max-results | integer, 10 | Result limit from 1 to 100. This is an upper bound, not an exact count. |
--only-main-content | boolean, true | Keep the main content during extraction and drop navigation and footers. |
--query | string, positional | Search query. Give it as the positional argument or with --query, not both. |
--source | string, web | web, news, shopping, or scholar. |
--time-range | string, unset | hour, day, week, month, or year. Not available with shopping or scholar. |
--timeout | duration, 60s | Per-fetch budget for content extraction, from 1s to 120s. |
--wait-for | duration, 0s | Extra wait after page load during extraction: at most 30s, and at most half of --timeout. |
Endpoint POST /v1/search, scope search. Credits billed per result; fractional values are possible.
flowda search "espresso machine" --max-results 5
flowda search "AI news" --source news --time-range week --country US --language en
flowda search "docs" --extract-content -f markdown --json -o results.json
flowda search "mechanical keyboard" --source shopping --max-results 20
Extraction options such as --format and --only-main-content are valid only with --extract-content; passing one without it is a local error, not a silent drop. A search with no results is a success with exit code 0. When one result cannot be extracted, the failure is marked in the table or JSON and does not change the exit code.
status
Show the CLI version, where the credential came from, connectivity, the embedded contract version and digest, and the account's daily quota. To compare a specification file with the online contract, use flowda openapi --check <file>.
flowda status
No command-specific flags. Endpoint GET /v1/account. Credits 0.
flowda status
flowda status --json
template
Execute a published template and return the records the template defines.
flowda template <template_id> [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--pages | integer, unset | Sugar for --param pages=<value>. |
--param | k=v, repeatable | One template parameter. The value is typed from the template's params_schema. |
--params | JSON string, unset | The whole params object. --params - reads it from stdin. |
--params-file | path, unset | Read the whole params object from a file. |
--refresh-schema | boolean, off | Ignore the schema cache and fetch params_schema again. |
--timeout | duration, unset | Sugar for --param timeout_ms=<milliseconds>. Accepts a duration such as 60s. |
--zipcode | string, unset | Sugar for --param zipcode=<5-digit zip code>. |
Endpoint POST /v1/template, scope extract. Credits 5; 0 on failure; a successful call with an empty result still costs 5.
Before sending the billed request, the CLI fetches the template's params_schema from the free GET /v1/templates/{id} endpoint and validates the parameters locally. The schema is cached for 24 hours; --refresh-schema fetches it again. Invalid parameters exit 2 without sending an execution request. --no-validate skips this check.
flowda template amazon_product --param asin=B0CHHSFMRL
flowda template walmart_search --params '{"query":"headphones","pages":2,"zipcode":"90017"}'
flowda template walmart_search --params-file params.json
cat params.json | flowda template walmart_search --params -
flowda template amazon_product --param asin=B0CHHSFMRL --refresh-schema
flowda template amazon_product --param asin=B0CHHSFMRL --no-validate
The ASIN example is a live Amazon product checked on 2026-11-16. A missing page or an empty result still costs 5 credits, so confirm the identifier is current before running it.
templates
List the templates the key can call. The output has three columns: template_id, name, and description.
flowda templates
No command-specific flags. Endpoint GET /v1/templates, scope extract. Credits 0.
flowda templates
flowda templates --json
templates get
Show one template: its ID, name, and description, the required parameters, and a request example.
flowda templates get <template_id> [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--schema | boolean, off | Print only params_schema, as pretty JSON. |
Endpoint GET /v1/templates/{template_id}, scope extract. Credits 0.
flowda templates get amazon_product
flowda templates get amazon_product --schema
flowda templates get amazon_product --json
The request_example in the detail contains placeholders and is not real data.
version
Show the CLI version and the version of the embedded contract.
flowda version
No command-specific flags. Endpoint none. Credits 0.
With --json, the output includes version, commit, build_date, go_version, spec_version, and spec_digest.
flowda version
flowda version --json
watch
Monitor web pages: create a job with a schedule, and the service fetches the page on that schedule and compares it with the previous snapshot.
flowda watch
The group contains ten subcommands. flowda watch run costs 1, 3, or 5 credits, and 0 on failure. The other subcommands are estimated at one unit of the server-side soft quota. All of them require the watch scope. Job and check IDs are job_ or chk_ followed by 22 base62 characters.
| Subcommand | Endpoint |
|---|---|
flowda watch list | GET /v1/watch/jobs |
flowda watch create <url> | POST /v1/watch/jobs |
flowda watch get <job_id> | GET /v1/watch/jobs/{id} |
flowda watch update <job_id> | PATCH /v1/watch/jobs/{id} |
flowda watch delete <job_id> | DELETE /v1/watch/jobs/{id} |
flowda watch run <job_id> | POST /v1/watch/jobs/{id}/check |
flowda watch checks <job_id> | GET /v1/watch/jobs/{id}/checks |
flowda watch check <job_id> <check_id> | GET /v1/watch/jobs/{id}/checks/{check_id} |
flowda watch pause <job_id> | POST /v1/watch/jobs/{id}/pause |
flowda watch resume <job_id> | POST /v1/watch/jobs/{id}/resume |
watch check
Show one check, including the historical diff body. This is the only endpoint that returns the diff body of an older check.
flowda watch check <job_id> <check_id>
No command-specific flags. Endpoint GET /v1/watch/jobs/{id}/checks/{check_id}. Credits estimated at one unit of the server-side soft quota.
flowda watch check job_01J8Z... chk_01J8Z...
flowda watch check job_01J8Z... chk_01J8Z... --json
watch checks
List the check history of a job, newest first.
flowda watch checks <job_id> [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--all | boolean, off | Follow next_cursor and fetch every page. With --json, the output is the merged array. |
--cursor | string, unset | Page cursor, taken from the previous page's next_cursor. |
--limit | integer, 50 | Page size, from 1 to 200. |
Endpoint GET /v1/watch/jobs/{id}/checks. Credits estimated at one unit of the server-side soft quota.
flowda watch checks job_01J8Z... --limit 10
flowda watch checks job_01J8Z... --all --json
The list does not include the diff body. Use flowda watch check for that.
watch create
Create a monitoring job.
flowda watch create <url> [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--country | string, US | Egress region from flowda regions. |
--cron | string, unset | Standard five-field cron expression, interpreted in --timezone, including weekends. |
--diff-mode | string, repeatable, unset | auto, text, or json. auto cannot be combined with the others. |
--every | duration, 0s when unset | Check interval from 60s to 30d, for example 1h or 90m. Runs on the UTC timeline; --timezone does not affect it. |
--header | k:v, repeatable | Request header forwarded to the target site during checks. |
--mask-exclude | string, repeatable | Noise types ignored before diffing. Naming one enables masking. |
--no-mask | boolean, off | Disable noise filtering. Mutually exclusive with --mask-exclude. |
--retention-days | integer, 30 | Days to keep the check history, from 0 to 365. 0 keeps it forever. |
--selector | string, unset | Monitor only part of the page. CSS or XPath, depending on --selector-type. |
--selector-type | string, css | css or xpath. |
--timezone | string, UTC | IANA timezone for --cron. |
--url | string, positional | Page URL. Give it as the positional argument or with --url. The URL cannot be changed after creation. |
--webhook-url | string, unset | Change callback URL: public HTTPS on port 80 or 443. Localhost and private networks are rejected at registration with 400/16006. |
Give exactly one of --every and --cron. Endpoint POST /v1/watch/jobs. Credits estimated at one unit of the server-side soft quota. The response includes a webhook_secret starting with whsec_ only the first time a callback URL is registered to your account; reusing a URL registered before never returns it again, GET never returns it, and there is no read-back or rotate endpoint — register a new URL and update the job to rotate. When no secret is returned, data.data.webhook_secret_note explains why. Store the secret immediately.
flowda watch create https://example.com/pricing --every 1h \
--selector "main .price" --diff-mode text \
--webhook-url https://api.mycorp.com/hooks/flowda
flowda watch create https://example.com/docs --cron "0 */6 * * *" --timezone Asia/Shanghai
flowda watch create https://example.com/blog --every 90m --retention-days 90
watch delete
Delete a monitoring job, together with its check history and pending deliveries. This is a destructive operation: without a TTY it requires -y or --yes, and otherwise exits 2 without prompting.
flowda watch delete <job_id>
No command-specific flags. Endpoint DELETE /v1/watch/jobs/{id}. Credits estimated at one unit of the server-side soft quota.
flowda watch delete job_01J8Z... --yes
watch get
Show one monitoring job, including its status and next run time.
flowda watch get <job_id>
No command-specific flags. Endpoint GET /v1/watch/jobs/{id}. Credits estimated at one unit of the server-side soft quota.
flowda watch get job_01J8Z...
flowda watch get job_01J8Z... --json
watch list
List the account's monitoring jobs.
flowda watch list [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--all | boolean, off | Follow next_cursor and fetch every page. With --json, the output is the merged array. |
--cursor | string, unset | Page cursor, taken from the previous page's next_cursor. |
--limit | integer, 50 | Page size, from 1 to 200. |
--status | string, unset | Filter by status: active, paused, or errored, in lowercase. |
--url | string, unset | Filter by exact URL. |
Endpoint GET /v1/watch/jobs. Credits estimated at one unit of the server-side soft quota.
flowda watch list --status active --limit 20
flowda watch list --all --json
flowda watch list --status active --all
With --all, the cursor decides when the list ends. An empty page does not mean the list is finished.
watch pause
Pause a monitoring job. No checks are scheduled while it is paused. The operation is idempotent.
flowda watch pause <job_id>
No command-specific flags. Endpoint POST /v1/watch/jobs/{id}/pause. Credits estimated at one unit of the server-side soft quota.
flowda watch pause job_01J8Z...
watch resume
Resume a monitoring job. It also works on an errored job, and it resets the consecutive-failure counter. The operation is idempotent.
flowda watch resume <job_id>
No command-specific flags. Endpoint POST /v1/watch/jobs/{id}/resume. Credits estimated at one unit of the server-side soft quota.
flowda watch resume job_01J8Z...
watch run
Run one check immediately, synchronously, and print the diff. The call takes about 60 seconds.
flowda watch run <job_id>
No command-specific flags. Endpoint POST /v1/watch/jobs/{id}/check. Credits 1, 3, or 5; 0 on failure.
flowda watch run job_01J8Z...
flowda watch run job_01J8Z... --json
There is no idempotency key. After a timeout or a 504, run flowda watch checks to see whether the check already executed before running it again. The synchronous result also reports whether the change webhook was delivered.
watch update
Update a monitoring job. The request has partial semantics: only the fields you give explicitly are sent. The URL cannot be changed.
flowda watch update <job_id> [flags]
| Flag | Type and default | Meaning |
|---|---|---|
--clear-webhook | boolean, off | Remove the callback URL by sending webhook_url: null. |
--country | string, US | Egress region from flowda regions. |
--cron | string, unset | Standard five-field cron expression, interpreted in --timezone, including weekends. |
--diff-mode | string, repeatable, unset | auto, text, or json. auto cannot be combined with the others. |
--every | duration, 0s when unset | Check interval from 60s to 30d. Runs on the UTC timeline; --timezone does not affect it. |
--header | k:v, repeatable | Request header forwarded to the target site during checks. |
--mask-exclude | string, repeatable | Noise types ignored before diffing. Naming one enables masking. |
--no-mask | boolean, off | Disable noise filtering. Mutually exclusive with --mask-exclude. |
--retention-days | integer, 30 | Days to keep the check history, from 0 to 365. 0 keeps it forever. |
--selector | string, unset | Monitor only part of the page. |
--selector-type | string, css | css or xpath. |
--timezone | string, UTC | IANA timezone for --cron. |
--webhook-url | string, unset | Change callback URL: public HTTPS on port 80 or 443. |
Endpoint PATCH /v1/watch/jobs/{id}. Credits estimated at one unit of the server-side soft quota.
flowda watch update job_01J8Z... --cron "*/30 * * * *" --timezone Asia/Shanghai
flowda watch update job_01J8Z... --clear-webhook
whoami
Show the current identity, scopes, and daily credit quota.
flowda whoami
No command-specific flags. Endpoint GET /v1/account. Credits 0.
flowda whoami
flowda whoami --json