Brevo CLI
Build Brevo integrations from your terminal: OAuth apps, UI apps that render inside Brevo, and Brevo Functions.

Set me up from scratch
Use when working in a project that uses the Brevo Developer CLI (the brevo binary from @getbrevo/cli) , managing OAuth apps, UI apps, and Brevo Functions, scaffolding integrations, running the local OAuth test server, or invoking any brevo … command.
---
name: brevo-cli
description: "Use when working in a project that uses the Brevo Developer CLI (the `brevo` binary from `@getbrevo/cli`), managing OAuth apps, UI apps, and Brevo Functions, scaffolding integrations, running the local OAuth test server, or invoking any `brevo …` command. Activates on: brevo, brevo cli, brevo app, brevo function, app-config.json, OAuth Brevo, BREVO_API_KEY, getbrevo."
compatibility: "Needs a terminal: it runs shell commands, so it works in coding agents (Claude Code, Codex, Cursor, Gemini CLI, Antigravity), not in chat-only apps."
metadata:
version: 2.6.1
status: public
---
# Brevo CLI
npx skills add getbrevo/brevo-skills
# or, with the Brevo CLI
npm i -g @getbrevo/cli
brevo skill install
Every skill is a SKILL.md file your agent reads.
Build apps with the Brevo CLI
The Brevo Developer CLI creates and manages three kinds of Brevo apps from your terminal: OAuth apps, UI apps that render inside Brevo, and Brevo Functions. The commands below take you from install to a running app.
npm install -g @getbrevo/cli
brevo --version
# sign in (browser by default)
brevo login
brevo whoami
# CI: use an API key
export BREVO_API_KEY=YOUR_API_KEY
brevo login
# or, guided: login, create app, scaffold
brevo app init
# create a consent-based OAuth app
brevo app create --name "My App" --distribution private --redirect-uri YOUR_REDIRECT_URL
# see the scopes you can request
brevo app available-scopes
# write app-config.json and the OAuth test server
brevo app scaffold --app-id YOUR_APP_ID
# run the OAuth test server locally
brevo app start oauth --port 3009
# push changes from app-config.json
brevo app upload
# server-to-server, no user consent, no callback
brevo app create --name "Ledger Sync" --distribution private --m2m --scopes "contacts:read,crm:read"
# mint a short-lived access token
brevo app token --app-id YOUR_APP_ID --json
# an action link that renders inside Brevo CRM records
brevo app create --ui-app --record-page RECORD_PAGE --placement SURFACE_POINT_NAME --label "Open in my app" --url YOUR_APP_URL
# push app-config.json, then make it visible in an account
brevo app upload
brevo app install --app-id YOUR_APP_ID
# pick Brevo Function at the app-type prompt (interactive)
brevo app create
# create a function from a template or an AI description
brevo function init
# deploy the draft and link it to the app
brevo function deploy --id YOUR_DRAFT_ID --app-id YOUR_APP_ID
# turn it on, then list what is deployed
brevo function activate --id YOUR_FUNCTION_ID
brevo function list
Placeholders in capitals are yours to fill in.
The developer flow, step by step
Install and sign in
Install the CLI with npm, yarn or Homebrew. It needs Node.js 20.15.0 or newer. Run brevo login for browser sign-in, or set BREVO_API_KEY for CI. Show the currently authenticated user with `brevo whoami`.
Choose the app type
brevo app init walks you through login, creating your first app and generating starter code. Or run brevo app create and pick OAuth app, UI app or Brevo Function at the prompt.
Scaffold and test OAuth
brevo app scaffold --app-id writes app-config.json and base files, then adds features such as the OAuth test server. A private app gets the confidential-client flow, a public app Authorization Code with PKCE. brevo app start oauth runs it locally.
Embed a UI app
A UI app is an action link that renders inside Brevo CRM record pages: contact, company and deal. Edit `app-config.json`, then push the change with `brevo app upload`.
Deploy a Brevo Function
brevo function init (interactive only) offers AI generation or template selection to create a function. brevo function deploy deploys a draft function to production, and --app-id links it to an app. brevo function activate activates it.





What you can build
Works with
Needs a terminal: it runs shell commands. It works in coding agents (Claude Code, Codex, Cursor, Gemini CLI, Antigravity).