functions
Create Edge Functions in the workspace, deploy and pull them, follow their deployments and roll back.
fn is an alias of functions. The workspace guide
covers the folder layout and the deploy flow.
functions new
nulvless functions new <slug> [--template <example>]
Creates nulvless/functions/<slug>/ in the workspace, from a starter or an
example.
nulvless functions new checkout --template stripe-webhook<slug>RequiredFunction slug, used in its URL.
--template <example>Start from an example. nulvless examples --kind function lists them.
functions deploy
nulvless functions deploy [slugs...]
Deploys functions from the workspace, creating the ones that do not exist yet. Never deletes a function missing from the folder.
nulvless functions deploy
nulvless functions deploy checkout webhooks[slugs...]Functions to deploy. Defaults to every folder in nulvless/functions.
functions pull
nulvless functions pull [slugs...]
Writes the code of existing functions into the workspace, such as one made in the console. Asks before overwriting a folder.
[slugs...]Functions to pull. Defaults to every function of the project.
functions list
nulvless functions list [--search <text>]
Lists the functions of the project with their status and current version.
--search <text>Only functions whose name or slug contains this text.
functions deployments
nulvless functions deployments <slug> [options]
Lists the deployments of one function, newest first. Marks the live version and the ones you can promote.
nulvless functions deployments checkout --status failed<slug>RequiredFunction slug.
--status <status>queued | running | succeeded | failed | cancelledOnly deployments in this status.
--trigger <trigger>Only deployments started this way, such as deploy or secret_change.
--version-contains <text>Only versions that contain this text, such as v3.
--limit, --page, --all, --oldest-firstfunctions promote
nulvless functions promote <slug> [version]
Serves an earlier version again, without rebuilding it. Nulvless keeps the live version and the three successful deploys before it.
nulvless functions promote checkout v2<slug>RequiredFunction slug.
[version]Version or deployment id from functions deployments. Asked in a terminal when
omitted.
functions delete
nulvless functions delete <slug>
Deletes a function, after confirming. Its folder in the workspace stays.
<slug>RequiredFunction slug.