1
Install the CLI
2
Authenticate
You need a personal access token (create one in the Jelou dashboard).
3
Initialize a project
Create a directory and run This generates the base files:
jelou functions init:4
Write your function
Replace the contents of
index.ts with a function that looks up customers by phone:index.ts
5
Run locally
Start the development server:Your server reloads automatically when you edit files.
6
Test with curl
In another terminal, send a request:Response:
7
Configure secrets
Before deploying, add the environment variables your function needs:
8
Deploy to production
9
Verify in production
Next steps
- Input/output validation — Zod schemas, type coercion, and error format
- Multi-tool functions — group multiple tools in a single deployment with
app()