Hanzo AI

Functions

The `hanzo functions` commands.

Also for this capability: API · CLI · SDKs

Your serverless code: publish it, call it over HTTP, watch every run and what it cost.

API reference →

hanzo functions list

Every command takes --json for the raw response and --help for its own flags. Sign in once with hanzo auth login; the commands below use that session, and the org they act in is the one it carries.

CommandWhat it does
hanzo functions deploymentsIs what is live right now — each function's current record IS its live deployment, so this is the deployment inventory.
hanzo functions listIs every serverless function the caller's org has published, each with its real 7-day rollup.
hanzo functions metricsIs the org's serverless dashboard over a window: a per-function invocation costLine and how those invocations ended.
hanzo functions secretsIs the NAMES of the secrets the caller org's functions mount.
hanzo functions triggersIs what calls the caller org's functions — one row per function.

create

CommandWhat it does
hanzo functions create --name <name>Publishes a serverless function under the caller's org and answers 201 with it.

get

CommandWhat it does
hanzo functions get <name>Is one function with everything a detail page needs in one round-trip: its definition, its 7-day rollup, its trigger,…

invocations

CommandWhat it does
hanzo functions invocations <name>Is one function's past runs, newest first — each with its status, HTTP code, method, time and duration.

invoke

CommandWhat it does
hanzo functions invoke <name>Runs a function and records a REAL invocation.

logs

CommandWhat it does
hanzo functions logs <name>Is the output of a function's most recent run — its error text when that run failed, else what it printed.

rm

CommandWhat it does
hanzo functions rm <name>Removes one of the caller org's functions and answers 204.

How is this guide?