Skip to main content
The Functions CLI is part of the unified Jelou CLI (@jelou/cli). Function commands live under the jelou functions … namespace (for example jelou functions deploy), while authentication and profiles are shared with the rest of the platform.
Just getting started with the CLI? First check out the Jelou CLI introduction, the authentication and the skills for AI editors pages. This page documents the jelou functions group in detail.

Installation

Verify:

Authentication

Authentication is global to the CLI (not specific to functions). Quick summary; details in Authentication and profiles.
In CI, pass the token via an environment variable:

Projects

jelou functions init

Initializes a Jelou Functions project.
Generates: index.ts, jelou.json, deno.json, .env, .gitignore.

jelou functions dev

Starts the local development server with hot reload.
The server automatically detects whether your function uses define() or app() and displays the corresponding routes.
To exercise deferred runs locally, start with JELOU_FN_DEFER_DEV=1.

jelou functions check

Validates the project before deploying. Needs no authentication and no network.
It catches what would keep your function from booting in production and warns about questionable configuration. Exits with an error if anything blocking is found.
Run it before deploy in your CI pipelines: it catches the problems without spending a deployment.

Deployment

jelou functions deploy

Deploys to production.
The first deploy automatically generates a runtime token.

jelou functions rollback [slug] [id]

Reverts to a previous deployment.

jelou functions deployments list [slug]

Lists the deployment history.

jelou functions deployments build [slug] [id]

Shows a deployment’s build log — it answers “why did the deploy I just ran fail?”. With no arguments it uses the newest deployment of the current project.
This is the build log. For the function’s runtime logs use jelou functions logs.

Functions

jelou functions list

Lists all functions.

jelou functions info <slug>

Shows details for a function.

jelou functions create

Creates a remote function (no local code).

jelou functions delete <slug>

Deletes a function. Requires confirmation (-y to skip it in CI).

Secrets

Function-level secrets. For organization-wide secrets, use jelou secret — see Organization secrets.

jelou functions secrets list <slug>

jelou functions secrets set <slug>

New values take effect on the next deployment. Run jelou functions deploy to apply them.

jelou functions secrets delete <slug> <key>

Tokens

Runtime tokens: the bearers (X-Jelou-Token / Authorization: Bearer) that external clients use to invoke a function’s routes. The deploy auto-generates one the first time.

jelou functions tokens list [slug]

jelou functions tokens create [slug]

Mints a new runtime token for a function. The full token is shown once on stdout — save it right away, since tokens list only shows a censored prefix from then on.
Create separate tokens per environment or integration (for example one for CI and another for an external partner) without touching the token the first deploy generated.

jelou functions tokens revoke <slug> <token-id>

Revokes an existing runtime token.

Logs

jelou functions logs [slug]

Don’t confuse this with jelou logs (without functions), which accesses a bot’s production conversation logs — see Workflows and testing.

Cron

jelou functions cron list [slug]

Deferred runs

Inspect the deferred runs your function has booked. Bookings are created from code or via HTTP headers, not from the CLI.

jelou functions defer list [slug]

By default it shows active bookings (scheduled, firing, cancel_requested).

jelou functions defer get <id>

Shows the detail of one booking, including the last error if it failed.

Skills for AI editors

The old jelou skill install was unified into jelou agent install, which installs the platform-wide skills (including jelou-functions) into your AI editors.
Details in Skills for AI editors.

Global flags

Full reference of flags, modes, and exit codes in CLI reference.

Environment variables

In CI pipelines, use JELOU_TOKEN as an environment variable and --json for parseable output: