sincecutoff.com
← all changes

cf API request map fields accept inline JSON or file input

Introduced 2026-10-16 · score 0.90

HOW TO USE IT

When an API request has map fields, supply each as inline JSON or `@path/to/file.json`. With `--body`, include all required map fields.

WHY THIS HELPS

When supplying map fields in an API request, pass the map as inline JSON or a JSON file.

REQUIREMENTS AND LIMITATIONS

  • Version: 1.0.0-beta.18
  • map field flag (name varies by API operation): Supply the map as inline JSON or `@path/to/file.json`; empty maps and nested values are preserved.
  • --body: Supply the request body; required map fields must also be present when using it.
  • Prerequisite: Install `cf` with `npm install -g cf`; requires Node.js 22 or newer.
  • Prerequisite: Authenticate with Cloudflare to run API commands.
  • Required map fields must also be present when using `--body`.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card