axs add lambda
axs add lambda writes a handler + service, a per-route config, a colocated test stub, and the registry import, placing files where axis.json says they belong. It is interactive when no name is given on a TTY. Author a fat multi-route lambda non-interactively with the repeatable --route flag ("<METHOD> <path> [auth=<authorizer>]") and --base-path — see REST v1 API.
axs add lambda items/create --kind api --method POST --path /itemsThe full option surface is generated from the CLI itself:
Usage: axs add lambda [name]
Add a Lambda handler + config file (interactive when no name on a TTY)
Arguments: name
Options: -k, --kind <kind> Kind: api | worker | cron | edge -m, --method <method> HTTP method (api kind only) -p, --path <path> API path e.g. /users/{id} -r, --runtime <runtime> Runtime: nodejs24 | nodejs22 | python312 | python311 | go --route <spec> Repeatable route "<METHOD> <path> [auth=<authorizer>]" — fat lambda via flags (3J11) --base-path <path> Base path for relative --route paths (forces the multi-route arm) --no-test Skip the colocated *.test.ts stub --local Local mode — skips auth check© 2026 Axis Tech. Powered by axis-tech.co.