gb urls
Show service URLs for a Genbox environment.
Synopsis
gb urls [name] [options]Description
Displays all accessible URLs for services running in your environment, including HTTPS endpoints and infrastructure ports.
Arguments
| Argument | Description |
|---|---|
name | Optional. Environment name. |
Options
| Option | Description |
|---|---|
--json | Output as JSON |
-c, --copy | Copy primary URL to clipboard |
Examples
Show All URLs
gb urls feature-authOutput:
Service URLs for 'feature-auth':
Applications:
admin https://admin.feature-auth.genbox.dev
api https://api.feature-auth.genbox.dev
web https://web.feature-auth.genbox.dev
Infrastructure:
MongoDB mongodb://feature-auth.genbox.dev:27017
Redis redis://feature-auth.genbox.dev:6379
SSH:
ssh dev@feature-auth.genbox.devJSON Output
gb urls --json{
"apps": {
"admin": "https://admin.feature-auth.genbox.dev",
"api": "https://api.feature-auth.genbox.dev"
},
"infrastructure": {
"mongodb": "mongodb://feature-auth.genbox.dev:27017",
"redis": "redis://feature-auth.genbox.dev:6379"
},
"ssh": "dev@feature-auth.genbox.dev"
}Copy to Clipboard
# Copy API URL
gb urls --copyURL Patterns
All URLs follow predictable patterns:
| Type | Pattern |
|---|---|
| App | https://<app>.<name>.genbox.dev |
| MongoDB | mongodb://<name>.genbox.dev:27017 |
| Redis | redis://<name>.genbox.dev:6379 |
| SSH | <name>.genbox.dev:22 |
Notes
- All app URLs are HTTPS with valid certificates
- Infrastructure ports require SSH tunnel or port forwarding for local access
- Use
gb forwardto access infrastructure locally
See Also
gb forward- Port forwardinggb connect- SSH accessgb status- Full status with URLs
Last updated on