CLI command
seed-profile
Adopt an existing Weles account as the source of a real Echo product.
Invocation#
echo-cli seed-profile --account <uuid> --name <product> [--description <text>] [--niche <text>] [--platforms <comma-list>]Inputs and output#
Writes the exact Echo Web result: applied, imported, unchanged, conflicting, rejected, source, and product. The account UUID is the stable source identity; credential contents are never accepted or printed.
State effect#
Echo Web validates the entire request and source, then inserts one product with a deterministic UUID and created_by=existing-profile:<account UUID>. An exact repeat is unchanged. Different product data for the same source is a conflict and nothing is written. Unrelated products remain intact.
Refusals#
- Without ECHO_WEB_BASE_URL it prints exactly "ECHO_WEB_BASE_URL is not configured" and exits 1.
- Without ECHO_INTERNAL_BEARER it prints exactly "ECHO_INTERNAL_BEARER is not configured" and exits 1.
- A malformed/non-HTTP Echo Web origin, missing values, repeated or unknown flags, a malformed or absent Weles account UUID, unsupported fields or platforms, and conflicting retained product data are refused.
- An API refusal is printed as imported/unchanged/conflicting/rejected JSON and exits 1.