https://github.com/node-libraries/cloudflared-output-domain
https://github.com/node-libraries/cloudflared-output-domain
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/node-libraries/cloudflared-output-domain
- Owner: node-libraries
- License: mit
- Created: 2024-01-10T13:46:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-10T13:47:38.000Z (over 2 years ago)
- Last Synced: 2025-06-23T23:04:49.123Z (12 months ago)
- Language: TypeScript
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudflared-output-domain
# usage
- Create tunnel
```bash
cloudflared --metrics 127.0.0.1:55555 --url http://127.0.0.1:8080
```
- Get the domain and pass it to the echo command.
```bash
npx cloudflared-output-domain --url http://127.0.0.1:55555 -- echo {url}
# output string
# https://xxxxxxxxxx.trycloudflare.com/
```
```bash
npx cloudflared-output-domain --url http://127.0.0.1:55555 -- echo {host}
# output string
# xxxxxxxxxx.trycloudflare.com
```