Skip to main content

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.

Applies to flowda CLI 0.1.3Last updated 2026-11-16

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. 0 means the call is free.
  • A command that says "no endpoint" runs locally and sends no HTTP request.

Global flags​

FlagMeaning
-k, --api-keyAPI key in the form flw_.... Defaults to FLOWDA_API_KEY or the configuration file.
--api-urlDeveloper API base URL. Defaults to https://openapi.flowda.ai or FLOWDA_API_URL.
--envelopePrint the full {code,message,request_id,data} envelope. Implies --json.
--http-timeoutTotal client-side request budget, for example 180s. Defaults to the operation budget plus 30 seconds.
--jsonMachine mode: stdout carries JSON only.
--no-colorDisable color. Equivalent to NO_COLOR=1.
--no-validateSkip local parameter validation and send the request as given.
-o, --outputWrite the result to a file. Writes JSON when the path ends in .json or --json is set.
--prettyIndent JSON. On by default in a terminal.
--profileConfiguration profile. Defaults to FLOWDA_PROFILE or default.
--quietSuppress prompts and the call summary.
--tokenSession JWT sent as a Bearer token. Defaults to FLOWDA_SESSION_TOKEN. Use an API key for scripts and agents.
--verbosePrint request and response summaries to stderr, including request_id.
-y, --yesSkip the confirmation for a destructive operation. Required in a non-interactive environment.
-h, --helpPrint help for the command.
-V, --versionPrint the CLI version.

Command groups​

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]
FlagMeaning
--openOpen 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]
FlagMeaning
--needComma-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]
FlagType and defaultMeaning
--advanced-modeboolean, trueLet the fetch service escalate its engine when page signals call for it. Keep the default when the page needs rendering.
--countrystring, USEgress region as a two-letter uppercase code. Values come from flowda regions.
--exclude-tagstring, repeatableRemove nodes that match these CSS selectors. Removing all content returns 16002.
-f, --formatstring, repeatable, [markdown]Output formats: markdown, raw_html, clean_html, links. Repeat the flag or separate values with commas.
--headerk:v, repeatableRequest header forwarded to the target site. A custom header bypasses the cache and marks the URL for 48 hours.
--include-tagstring, repeatableKeep only nodes that match these CSS selectors.
--max-ageduration, 48hMaximum age of a cached snapshot, at most 48 hours. 0 forces a fresh fetch.
--only-main-contentboolean, trueKeep the main content and drop navigation and footers. Write --only-main-content=false to include them.
--timeoutduration, 60sPer-fetch budget, from 1s to 120s. The client HTTP budget is the global --http-timeout.
--urlstring, positionalTarget page URL. Give it as the positional argument or with --url, not both.
--wait-forduration, 0sExtra 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]
FlagType and defaultMeaning
--no-saveboolean, offValidate only; do not write the configuration.
--stdinboolean, offRead 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]
FlagType and defaultMeaning
--countrystring, USEgress region from flowda regions.
--domain-filterstring, alldomain keeps only same-site URLs; all includes external links.
--limitinteger, 5000Maximum number of URLs, from 1 to 100000.
--sitemapstring, includeskip, include, or only.
--urlstring, positionalSite 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]
FlagType and defaultMeaning
--checkstring, unsetCompare 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.

Save the YAML contract
flowda openapi -o spec.yaml
Save the JSON variant
flowda openapi --json -o spec.json
Compare a saved copy (YAML or 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 the web, and optionally extract the content of every result in the same call.

flowda search <query> [flags]
FlagType and defaultMeaning
--advanced-modeboolean, trueLet the fetch service escalate its engine when page signals call for it. Keep the default when the page needs rendering.
--countrystring, unsetTwo-letter uppercase ISO code from flowda countries. Not available with --source scholar.
--exclude-tagstring, repeatableRemove nodes that match these CSS selectors. Applies to content extraction.
--extract-contentboolean, offAlso extract the content of every result.
-f, --formatstring, repeatable, [markdown]Extraction formats. Only valid with --extract-content.
--include-tagstring, repeatableKeep only nodes that match these CSS selectors. Applies to content extraction.
--languagestring, unsetResult language, case-sensitive, from flowda languages.
--max-ageduration, 48hMaximum age of a cached snapshot. 0 forces a fresh fetch. Applies to content extraction.
--max-resultsinteger, 10Result limit from 1 to 100. This is an upper bound, not an exact count.
--only-main-contentboolean, trueKeep the main content during extraction and drop navigation and footers.
--querystring, positionalSearch query. Give it as the positional argument or with --query, not both.
--sourcestring, webweb, news, shopping, or scholar.
--time-rangestring, unsethour, day, week, month, or year. Not available with shopping or scholar.
--timeoutduration, 60sPer-fetch budget for content extraction, from 1s to 120s.
--wait-forduration, 0sExtra 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]
FlagType and defaultMeaning
--pagesinteger, unsetSugar for --param pages=<value>.
--paramk=v, repeatableOne template parameter. The value is typed from the template's params_schema.
--paramsJSON string, unsetThe whole params object. --params - reads it from stdin.
--params-filepath, unsetRead the whole params object from a file.
--refresh-schemaboolean, offIgnore the schema cache and fetch params_schema again.
--timeoutduration, unsetSugar for --param timeout_ms=<milliseconds>. Accepts a duration such as 60s.
--zipcodestring, unsetSugar 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]
FlagType and defaultMeaning
--schemaboolean, offPrint 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.

SubcommandEndpoint
flowda watch listGET /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]
FlagType and defaultMeaning
--allboolean, offFollow next_cursor and fetch every page. With --json, the output is the merged array.
--cursorstring, unsetPage cursor, taken from the previous page's next_cursor.
--limitinteger, 50Page 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]
FlagType and defaultMeaning
--countrystring, USEgress region from flowda regions.
--cronstring, unsetStandard five-field cron expression, interpreted in --timezone, including weekends.
--diff-modestring, repeatable, unsetauto, text, or json. auto cannot be combined with the others.
--everyduration, 0s when unsetCheck interval from 60s to 30d, for example 1h or 90m. Runs on the UTC timeline; --timezone does not affect it.
--headerk:v, repeatableRequest header forwarded to the target site during checks.
--mask-excludestring, repeatableNoise types ignored before diffing. Naming one enables masking.
--no-maskboolean, offDisable noise filtering. Mutually exclusive with --mask-exclude.
--retention-daysinteger, 30Days to keep the check history, from 0 to 365. 0 keeps it forever.
--selectorstring, unsetMonitor only part of the page. CSS or XPath, depending on --selector-type.
--selector-typestring, csscss or xpath.
--timezonestring, UTCIANA timezone for --cron.
--urlstring, positionalPage URL. Give it as the positional argument or with --url. The URL cannot be changed after creation.
--webhook-urlstring, unsetChange 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]
FlagType and defaultMeaning
--allboolean, offFollow next_cursor and fetch every page. With --json, the output is the merged array.
--cursorstring, unsetPage cursor, taken from the previous page's next_cursor.
--limitinteger, 50Page size, from 1 to 200.
--statusstring, unsetFilter by status: active, paused, or errored, in lowercase.
--urlstring, unsetFilter 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]
FlagType and defaultMeaning
--clear-webhookboolean, offRemove the callback URL by sending webhook_url: null.
--countrystring, USEgress region from flowda regions.
--cronstring, unsetStandard five-field cron expression, interpreted in --timezone, including weekends.
--diff-modestring, repeatable, unsetauto, text, or json. auto cannot be combined with the others.
--everyduration, 0s when unsetCheck interval from 60s to 30d. Runs on the UTC timeline; --timezone does not affect it.
--headerk:v, repeatableRequest header forwarded to the target site during checks.
--mask-excludestring, repeatableNoise types ignored before diffing. Naming one enables masking.
--no-maskboolean, offDisable noise filtering. Mutually exclusive with --mask-exclude.
--retention-daysinteger, 30Days to keep the check history, from 0 to 365. 0 keeps it forever.
--selectorstring, unsetMonitor only part of the page.
--selector-typestring, csscss or xpath.
--timezonestring, UTCIANA timezone for --cron.
--webhook-urlstring, unsetChange 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