Learn how to use the
novu
CLI package and the available CLI flags to use for customizationControl and Payload forms
You can quickly modify the Step Controls and workflow Payload to preview your workflow’s different states. This is helpful to quickly debug how the email will behave in case of a missing control, or iterate more complex content structures.Syncing State
Syncing state to your Production or Development environment in Novu, is recommended to do via your CI pipeline. However, a sync can be made using the Local Studio for quick experimentation. Click on the Sync button at the top right corner of the navigation bar. This will open the Sync State modal.Tunnel URL
By default the Novu CLI will automatically create a tunnel URL connected to your local computer. This tunnel will proxy any workflow engine requests on our cloud to your local machine.Connect Studio to your local server
By default, the Studio will connect to the Novu Bridge Endpoint running on your local machine athttp://localhost:4000/api/novu
if your server is running on a different port or the workflows are served from a different endpoint path you can use the following optional parameters to connect:
- YOUR_SERVER_PORT - This accepts the port number where your server is running. Defaults to 4000.
- YOUR_NOVU_ROUTE_PATH - This is the mounted path of the framework
serve
function. Defaults to/api/novu
.
Novu CLI flags
The Novu CLI commandnpx novu@latest dev
supports a number of flags:
Flag | Long form usage example | Description | Default value |
---|---|---|---|
-p | —port <port> | Bridge application port | 4000 |
-r | —route <route> | Bridge application route | /api/novu |
-o | —origin <origin> | Bridge application origin | http://localhost |
-d | —dashboard-url <url> | Novu Cloud dashboard URL | https://dashboard-v2.novu.co |
-sp | —studio-port <port> | Local Studio server port | 2022 |
-t | —tunnel <url> | Self hosted tunnel url | null |
-H | —headless | Run bridge in headless mode | false |
3002
and Novu account is in EU
region.
FAQ
Running Studio without a tunnel
Running Studio without a tunnel
It is possible to run the Studio without generating the default tunnel by passing the
--tunnel
flag with the URL of your application.While the preview will work, you won’t be able to test your notifications by the triggering them from the Studio UI.