W-21213800 adding realm, alias and usage commands in ODS#139
Merged
charithaT07 merged 7 commits intomainfrom Feb 15, 2026
Merged
W-21213800 adding realm, alias and usage commands in ODS#139charithaT07 merged 7 commits intomainfrom
charithaT07 merged 7 commits intomainfrom
Conversation
clavery
approved these changes
Feb 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
This PR adds support for sandbox realm management, aliases, usage and reset commands in the CLI, and updates docs/tests so the new flows are clear and reliable.
New and updated commands
Usage
sandbox usage– sandbox‑level usage stats (calls/sandboxes/{sandboxId}/usage), with date range flags and JSON or summary output.sandbox realm usage– realm‑level usage stats (calls/realms/{realm}/usage), supports--from,--to,--granularity, and--detailed-report.Realm
sandbox realm get– shows realm metadata and configuration (including schedulers), either as JSON or a nicely formatted detail view.sandbox realm list– lists accessible realms and whether they’re enabled.sandbox realm update– updates realm configuration (max-sandbox-ttl,default-sandbox-ttl,start/stopschedulers)Sandbox reset
sandbox reset– triggers a sandbox reset via ODS, with the existing confirmation,--force, and optional--wait/ polling behavior preserved. When--waitis set, it useswaitForSandboxto follow the sandbox back tostarted.Sandbox aliases
sandbox alias create– creates an alias for a sandbox with flags for--uniqueand--letsencrypt, plus--no-opento skip opening the browser. Returns alias info and, in non JSON mode, prints DNS verification guidance.sandbox alias list– lists all aliases for a sandbox or fetches a single alias when--alias-idis provided.sandbox alias delete– deletes an alias with an interactive confirm (or--force), and treats 404 as “already deleted”.Sandbox IPs
sandbox ips– shows inbound/outbound IPs from [/system], or realm‑scoped IPs from/realms/{realm}/systemwhen--realmis used. Examples are updated to highlight the realm flag.Docs and tests
docs/cli/sandbox.mdnow has clear sections for:Added unit tests for every new/refactored ODS command above, using the existing test helpers (
createIsolatedConfigHooks,createTestCommand,runSilent) and stubbingodsClientand sandbox/realm resolution.Testing
How was this tested?
pnpm test)pnpm run format)