Setting Up with Stably CLI
To create tests for your localhost application, you can use the Stably CLI to create a secure tunnel that makes your local server accessible to Stably. Follow these steps:Installation
First, install the Stably CLI globally:Authentication
Before using the CLI, authenticate with your Stably API key:Creating the Tunnel
- Start your local application server (make sure itβs running on your desired port, e.g., 3000)
- Run the Stably development server command:
-
The CLI will:
- Start a development server on the specified port
- Create a secure tunnel to expose your local environment
- Provide you with a public URL where your local environment is accessible
- Use the provided tunnel URL in the Stably App to point your tests to your local environment.
Ctrl+C
in your terminal.