Developer (Dev) URLs allow users to access the ports of services they are developing within their environment.
Before you can Dev URLs, you must enable the feature preview. To do so, log into the Coder Enterprise UI and click on the vertical ellipses next to your name in the top-right. Select Feature Preview.
In the dialog that opens, select the Multi Editor option and click Enable.
You can create a Dev URL from the environment overview page. In the Dev URLs section, click Add URL. Provide the port number you'd like to use, an optional Name, as well as whether the URL should be public, private, available to others in your organization or to anyone logged in to your instance of Coder.
To access a Dev URL, click the Open in browser icon to open it in a new page, or the Copy button to copy the URL for sharing.
Dev URLs are constructed as follows:
If a name is provided:
If no name is provided:
As an example, a Dev URL for port
8080 can be constructed for:
8080-my-project-user.acme.com, or if given the name
If not already present, Dev URLs that are directly accessed will be automatically added to the Dev URL list on the dashboard. Their access will be set to Private.
Each Dev URL can set an access level. The options are:
- Private - Only the owner of the environment can access the URL
- Organization - Anyone in the same organization as the environment can access the URL
- Authorized Users - Anyone logged in to your instance of Coder
- Public - Anyone on the internet
The Coder CLI comes with features for you to use and manage your Dev URLs.
To list all existing Dev URLs:
coder urls <env name>
To create/edit or delete Dev URLs:
coder urls [create | del] <env name> <port>
$ coder urls create my-env 8001 $ coder urls create my-env 8002 --access PUBLIC
$ coder urls my-env http://8000-my-env-admin.devurls-coder.coder-dev-1.gcp.coder-cloud.com/ 8000 PRIVATE http://8001-my-env-admin.devurls-coder.coder-dev-1.gcp.coder-cloud.com/ 8001 PUBLIC
create subcommand can also be used to update an existing DevURL. To do so, specify the
<port> for an existing Dev URL and supply a new
$ coder urls del my-env 8000
Updated 5 days ago