Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Basic DevTunnel Example

This is a basic example showing how to use the DevTunnel DevContainer Feature.

What's Included

This devcontainer configuration includes:

  • Ubuntu base image
  • DevTunnel CLI (latest version)
  • Post-create command that verifies installation

How to Use

  1. Open this directory in VS Code with the Dev Containers extension installed
  2. Reopen in Container when prompted
  3. Login to DevTunnel:
    devtunnel user login
  4. Start a simple web server (example with Python):
    python3 -m http.server 8000
  5. Create a tunnel to share it:
    devtunnel host -p 8000 --allow-anonymous

Example Commands

List all tunnels

devtunnel list

Create a named tunnel

devtunnel create -a

Connect to an existing tunnel

devtunnel host <tunnel-id> -p 8000

Delete a tunnel

devtunnel delete <tunnel-id>

Learn More