Skip to Content
New to Genbox? Check out our Getting Started guide

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

ArgumentDescription
nameOptional. Environment name.

Options

OptionDescription
--jsonOutput as JSON
-c, --copyCopy primary URL to clipboard

Examples

Show All URLs

gb urls feature-auth

Output:

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.dev

JSON 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 --copy

URL Patterns

All URLs follow predictable patterns:

TypePattern
Apphttps://<app>.<name>.genbox.dev
MongoDBmongodb://<name>.genbox.dev:27017
Redisredis://<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 forward to access infrastructure locally

See Also

Last updated on