/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
docs/framework/deployment/cli.mdx
63 строки
4 KB
Dima Grossman
docs(framework): document viewing bridge URL in Dashboard header fixes DOC-424 (#12151)
30 июл 2026, 15:49
Не верифицирован
30 июл 2026, 15:49
6941fca
Код
Авторство
О чём код?
--- title: 'Deploy workflows with the Novu CLI' sidebarTitle: 'CLI' description: 'Use the Novu CLI sync command to push Framework workflows to Novu Cloud, connect a bridge endpoint, and understand sync output messages.' --- The Novu CLI provides a mechanism for you to synchronize your workflows into Novu Cloud so that non-technical Novu users can control the workflow and Step-level controls and enable your workflows to be triggered via Novu API. <Tabs> <Tab title="US Region"> ```bash npx novu@latest sync \ --bridge-url <YOUR_DEPLOYED_URL_WITH_BRIDGE_ENDPOINT> \ --secret-key <NOVU_SECRET_KEY> \ --api-url https://api.novu.co ``` </Tab> <Tab title="EU Region"> ```bash npx novu@latest sync \ --bridge-url <YOUR_DEPLOYED_URL_WITH_BRIDGE_ENDPOINT> \ --secret-key <NOVU_SECRET_KEY> \ --api-url https://eu.api.novu.co ``` </Tab> </Tabs> - If your application api server is running at URL **https://api.domain.com** and **/api/novu** endpoint is serving Novu workflows created using Novu Framework, then `<YOUR_DEPLOYED_URL>`in above command will be `https://api.domain.com/api/novu` - If your application is running on your local machine during local development (`npx novu dev`), the tunnel URL can be used as `<YOUR_DEPLOYED_URL>`. The tunnel URL follows the format of `https://<UUID>.novu.sh/api/novu`, and example is `https://041e553c-0dbf-47e0-8ffa-c4536f390145.novu.sh/api/novu`. In this example `041e553c-0dbf-47e0-8ffa-c4536f390145` is the unique tunnel identifier which is generated for each Novu user when starting a tunnel via `npx novu@latest dev`. The tunnel identifier is persisted to your local machine to guarantee the same tunnel URL each time you invoke `npx novu@latest dev`. ## Understanding sync output A successful sync prints the number of workflows and steps that were discovered from your bridge endpoint, for example: ```json {"status":"ok","sdkVersion":"2.10.0","frameworkVersion":"2024-06-26","discovered":{"workflows":14,"steps":30}} ``` You may also see the following message printed alongside a successful sync: ``` Could not discover agents for bridge URL sync (bridge may not expose agents yet). ``` This is an informational notice, not an error. It only indicates that your bridge does not expose any [Agents](/agents/get-started/what-is-aci) at the sync endpoint. If you are only syncing workflows, you can safely ignore this message - your workflows and steps have still been synced. ## View your synced bridge URL After a successful sync, the bridge URL is stored on the environment you synced to. In the Novu Dashboard, open that environment and click the glowing status orb in the top-right navigation bar to view or update the **Bridge Endpoint URL**. <Frame caption="The glowing orb in the Dashboard header shows the bridge URL for the selected environment.">  </Frame> For more detail, see [View your bridge URL](/framework/endpoint#view-your-bridge-url). ## Using vercel preview url In free tier, vercel preview urls for non production deployments are not publicly accessible. You will need to enable [Protection Bypass for Automation](https://vercel.com/docs/security/deployment-protection/methods-to-bypass-deployment-protection/protection-bypass-automation#protection-bypass-for-automation) from settings to make the preview url publicly accessible. Use vercel generated secret key in query params with bridge url to make the bridge url accessible to novu. Example: `https://my-app-preview-url.vercel.app/api/novu?x-vercel-protection-bypass=BYPASS_SECRET_KEY`