Linux command
expose 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Expose local server
expose share [http://localhost:8000]
Expose with custom subdomain
expose share [http://localhost:3000] --subdomain [myapp]
Expose with basic authentication
expose share [http://localhost:8000] --auth [user:password]
Set authentication token
expose token [your_auth_token]
Expose with a custom domain
expose share [http://localhost:8000] --domain [example.com]
说明
Expose is a tunneling service written in PHP that creates secure HTTPS tunnels to expose local servers to the internet. It provides public URLs for development, testing, and demos without deploying. Custom subdomains and domains allow memorable URLs for presentations or client demos. The tool is an open-source alternative to ngrok, built by BeyondCode.
参数
- share _URL_
- Create tunnel to local server.
- token _TOKEN_
- Set the authentication token.
- --subdomain _NAME_
- Use a custom subdomain.
- --auth _USER:PASS_
- Add basic HTTP authentication to the tunnel.
- --domain _DOMAIN_
- Use a custom domain.
- --server _SERVER_
- Connect to a specific Expose server.
- --server-host _HOST_
- Specify the server host.
- --server-port _PORT_
- Specify the server port.
- --dns _DNS_
- Specify a DNS server.
FAQ
What is the expose command used for?
Expose is a tunneling service written in PHP that creates secure HTTPS tunnels to expose local servers to the internet. It provides public URLs for development, testing, and demos without deploying. Custom subdomains and domains allow memorable URLs for presentations or client demos. The tool is an open-source alternative to ngrok, built by BeyondCode.
How do I run a basic expose example?
Run `expose share [http://localhost:8000]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does share _URL_ do in expose?
Create tunnel to local server.