Hanzo
CLIFunctions

Functions

11 `hanzo` commands for Functions, each calling one operation on api.hanzo.ai.

Package functions is your serverless code: publish it, call it over HTTP, watch every run and what it cost.

11 commands · API reference →

CommandCallsWhat it does
hanzo functions invocations <name>GET /v1/functions/{name}/invocationsIs one function's past runs, newest first — each with its status, HTTP code, method, time and duration.
hanzo functions invoke <name>POST /v1/functions/{name}/invokeRuns a function and records a REAL invocation.
hanzo functions logs <name>GET /v1/functions/{name}/logsIs the output of a function's most recent run — its error text when that run failed, else what it printed.
hanzo functions get <name>GET /v1/functions/{name}Is one function with everything a detail page needs in one round-trip: its definition, its 7-day rollup, its trigger,…
hanzo functions rm <name>DELETE /v1/functions/{name}Removes one of the caller org's functions and answers 204.
hanzo functions deploymentsGET /v1/functions/deploymentsIs what is live right now — each function's current record IS its live deployment, so this is the deployment inventory.
hanzo functions metricsGET /v1/functions/metricsIs the org's serverless dashboard over a window: a per-function invocation costLine and how those invocations ended.
hanzo functions secretsGET /v1/functions/secretsIs the NAMES of the secrets the caller org's functions mount.
hanzo functions triggersGET /v1/functions/triggersIs what calls the caller org's functions — one row per function.
hanzo functions listGET /v1/functionsIs every serverless function the caller's org has published, each with its real 7-day rollup.
hanzo functions create --name <name>POST /v1/functionsPublishes a serverless function under the caller's org and answers 201 with it.

How is this guide?