feat(cli): add open app <workspace> <app-slug> command (#17032)

Fixes https://github.com/coder/coder/issues/17009

Adds a CLI command `coder open app <workspace> <app-slug>` that allows
opening arbitrary `coder_apps` via the CLI.

Users can optionally specify a region for workspace
applications.
This commit is contained in:
Cian Johnston
2025-03-21 15:28:08 +00:00
committed by GitHub
parent 3b6bee9676
commit 0474888eb4
8 changed files with 431 additions and 3 deletions
+1
View File
@@ -6,6 +6,7 @@ USAGE:
Open a workspace
SUBCOMMANDS:
app Open a workspace application.
vscode Open a workspace in VS Code Desktop
———
+14
View File
@@ -0,0 +1,14 @@
coder v0.0.0-devel
USAGE:
coder open app [flags] <workspace> <app slug>
Open a workspace application.
OPTIONS:
--region string, $CODER_OPEN_APP_REGION (default: primary)
Region to use when opening the app. By default, the app will be opened
using the main Coder deployment (a.k.a. "primary").
———
Run `coder --help` for a list of global options.