From 9e29e113ed6fe3c7144e7a166b73a88c187dd544 Mon Sep 17 00:00:00 2001 From: Cooper Miller Date: Wed, 11 Mar 2026 23:31:07 -0700 Subject: [PATCH] short flags to sandbox delete and tunnel stop commands --- packages/prime/src/prime_cli/commands/sandbox.py | 3 ++- packages/prime/src/prime_cli/commands/tunnel.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/prime/src/prime_cli/commands/sandbox.py b/packages/prime/src/prime_cli/commands/sandbox.py index 51c44c02b..85640d380 100644 --- a/packages/prime/src/prime_cli/commands/sandbox.py +++ b/packages/prime/src/prime_cli/commands/sandbox.py @@ -538,7 +538,7 @@ def delete( sandbox_ids: Optional[List[str]] = typer.Argument( None, help="Sandbox ID(s) to delete (space or comma-separated)" ), - all: bool = typer.Option(False, "--all", help="Delete all sandboxes"), + all: bool = typer.Option(False, "--all", "-a", help="Delete all sandboxes"), labels: Optional[List[str]] = typer.Option( None, "--label", "-l", help="Delete all sandboxes with ALL these labels" ), @@ -546,6 +546,7 @@ def delete( only_mine: bool = typer.Option( True, "--only-mine/--all-users", + "-m/-A", help="Restrict '--all' deletes to only your sandboxes", show_default=True, ), diff --git a/packages/prime/src/prime_cli/commands/tunnel.py b/packages/prime/src/prime_cli/commands/tunnel.py index 8102ebaf2..132e2caee 100644 --- a/packages/prime/src/prime_cli/commands/tunnel.py +++ b/packages/prime/src/prime_cli/commands/tunnel.py @@ -141,7 +141,7 @@ def stop_tunnel( tunnel_ids: Optional[List[str]] = typer.Argument( None, help="Tunnel ID(s) to stop (space or comma-separated)" ), - all: bool = typer.Option(False, "--all", help="Stop all tunnels"), + all: bool = typer.Option(False, "--all", "-a", help="Stop all tunnels"), team_id: Optional[str] = typer.Option( None, "--team-id", @@ -151,7 +151,8 @@ def stop_tunnel( only_mine: bool = typer.Option( True, "--only-mine/--all-users", - help="Restrict '--all' deletes to only your tunnels (default: only yours)", + "-m/-A", + help="Restrict '--all' deletes to only your tunnels", show_default=True, ), ) -> None: