## --domain is the WHOLE zone string from `bdy domain ls` (apex like "example.com" or multi-level like "my-app.example.dev"). ## --subdomain is OPTIONAL and only prepends a NEW sub-name to that zone. Never split a multi-level zone — it goes whole into --domain. ## route an apex zone you bought ("example.com") to an artifact bdy distro route create distro-identifier --domain = "example.com" --target "artifact=artifact-identifier:version" $ ## route a multi-level zone you claimed ("my-app.example.dev") to an artifact — pass it WHOLE, do NOT split bdy distro route create distro-identifier --domain = "my-app.example.dev" --target "artifact=artifact-identifier:version" $ ## route a NEW sub-name within a zone ("api.example.com") — subdomain is "api", zone is "example.com" bdy distro route create distro-identifier --subdomain = "api" --domain = "example.com" --target "url=https://backend.internal" $ ## route to a sandbox endpoint (no zone, distro's default domain is used) bdy distro route create distro-identifier --subdomain = "sandbox" --target "sandbox=sandbox-identifier:endpoint-name" $ ## route to an artifact in two locations (default + Europe override) bdy distro route create distro-identifier --subdomain = "artifact" --target "artifact=artifact-identifier:version" --target "region=Europe,artifact=artifact-identifier:version2" $ ## route only for js files under a sub-name bdy distro route create distro-identifier --path = "*.js" --subdomain = "cdn" --target "artifact=artifact-identifier:version" $ bdy distro route create distro-identifier --type = "REDIRECT" --path = "/my-url" --target "url=https://example.com/page" $ bdy distro route update distro-identifier route-id --path = "/public/*.js" $ ## update route subdomain & domain bdy distro route update distro-identifier route-id --subdomain = new --domain = test.com$ bdy distro route update distro-identifier route-id --target url = https://example.com$ bdy distro route ls distro-identifier$ ## delete route (find by "bdy distro route ls distro-identifier") bdy distro route rm distro-identifier route-id$