dive tool
dive tool test
Invoke a tool directly
Calls the tool and prints its result. With --json, prints {tool, isError, result}; a tool that reports an error still exits 0, with isError set.
Arguments
The tool's namespaced name, as dive tool list prints it
JSON|@FILE|-string
Input as a JSON object: inline ('{"a":1}'), @file.json, or - for stdin
Options
--inputstring[]
Override individual input keys (applied on top of the JSON document)
Format: KEY=VALUE.
--jsonboolean
Print a JSON envelope instead of text
Global options
-v, --verboseinteger
Increase log verbosity (-v info, -vv debug, -vvv trace)
--identitystring
Act as this [identities] entry: runs get a run token minted for its tenant and user, which http tools send to the app
Format: IDENTITY.
dive tool test [OPTIONS] <NAME> [JSON|@FILE|-]