CLI
LocalXpose Command Line Interface
Usage
# *nix systems
loclx <COMMAND> <SUBCOMMAND> <FLAG>
# windows
loclx.exe <COMMAND> <SUBCOMMAND> <FLAG>Available Commands
account
This command is responsible for user account related functions.
User can grab his access token from the dashboard here https://localxpose.io/dashboard/access. An alternative way to login without issuing account login is by passing the ACCESS_TOKEN as environment variable for example:
Using account login will store the access token securely in your OS keyring store and fallback to a file in $HOME/.access.
tunnel
Tunnel command is responsible for tunneling functions, you can start HTTP, TLS, TCP or UDP tunnels
The flag --raw-mode is will disable terminal UI, it is mostly used in background process and legacy systems like windows 7.
- Run http tunnel
http tunnelYou can check more about HTTP tunnel here.
- Multiple tunnels from config file
Read more about the config file syntax here.
- Tunnel with specific region and temporary subdomain
- Run http tunnel with middlewares:
http tunnel with middlewares:- Run tcp tunnel with a temporary port:
tcp tunnel with a temporary port:domain
Domain command is responsible for managing your domain reservations.
- Reserve a subdomain
A subdomain hello.loclx.io will be reserved in the region us so then you can use it in your tunnels like loclx tunnel http --reserved-domain hello.loclx.io
- Reserve a custom domain
Then you can use it in your tunnels like loclx tunnel http --reserved-domain example.com, more about domain reservation here.
- Create Let's Encrypt certificate for your domain:
The above will create for you a Lets Encrypt certificate and store it in you $HOME/.localxpose.
endpoint
Endpoint command is responsible for managing your endpoints reservations.
- Reserve a port in EU region
This will reserve an endpoint eu.loclx.io:7788 that you can use in your tunnels like loclx tunnel tcp --reserved-endpoint eu.loclx.io:7788. You can read more about endpoint reservations here.
service
Service will be managing your LocalXpose background daemon service, so you can install, run, stop, restart and uninstall the service in your operating system.
- Install the service in your operating system
So this will generate a service in your operating system called localxpose.
- Start the service
This will start the tunnels configured in your config.yaml that we used earlier in the service installation step.
Whenever you need to change some tunnels settings, just stop the service loclx service stop and then modify the config.yaml and then start the service again loclx service start.
setting
Settings managment like http-proxy
- Add http-proxy for your tunnels
If your environment has proxy server to access the internet, then you need to tell LocalXpose:
- Remove http-proxy from your settings
update
Update to the latest LocalXpose version.
Last updated
Was this helpful?
