Skip to content
Docs

inquir invoke

Invoke a deployed serverless function.

@inquir/compute-cliv0.3.0 · Node.js 22+

Usage#

inquir invokebash
inquir invoke <asset> [options]

Options#

OptionDescription
--payload <json>Pass a JSON payload string.
--payload-file <path>Read the JSON payload from a file.
--env <name>Use a named CLI credential environment.
--jsonPrint machine-readable results.

Global flags, environments and CLI credentials

Examples#

Example 1bash
inquir invoke hello --payload-file ./payload.json
Example 2bash
inquir invoke hello --payload '{"name":"World"}'

Behavior#

JSON can also be piped through stdin. Use run for a local SDK execution.

Guides#