Skip to main content
Version: 1.0

wash call

wash call can be used to directly invoke a component. This can be useful when debugging, especially when the component isn't directly accessible via external channels such as HTTP. It is not recommended to use wash call in production environments.


wash up --detached
wash start component echo
wash call echo wasi:cli/ --bin s


--output (Alias -o) Specify output format (text or json) [default: text]

--rpc-host (Alias -r) RPC Host for connection, defaults to for local nats [env: WASMCLOUD_RPC_HOST=] [default:]

--rpc-port RPC Port for connections, defaults to 4222 for local nats [env: WASMCLOUD_RPC_PORT=] [default: 4222]

--rpc-jwt JWT file for RPC authentication. Must be supplied with rpc_seed

--rpc-seed Seed file or literal for RPC authentication. Must be supplied with rpc_jwt

--rpc-credsfile Credsfile for RPC authentication. Combines rpc_seed and rpc_jwt. See for details [env: WASH_RPC_CREDS]

--lattice(Alias -x) Lattice for wasmcloud command interface, defaults to "default" [env: WASMCLOUD_LATTICE=]

--data (Alias -d) Optional JSON file to send as the operation payload

--save Optional file for saving binary response

--bin When using JSON output, display binary as binary ('b'), string ('s'), or both ('2'). Defaults to binary

--test When invoking a test component, interpret the response as TestResults