Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(cli): expose update command and CAP_DESKTOP_FORCE_INSTALL in guide

Richie McIlroyf29d71409a53
diff --git a/apps/cli/src/guide.rs b/apps/cli/src/guide.rs
index 46d0a2d5b..9f32a1a6c 100644
--- a/apps/cli/src/guide.rs
+++ b/apps/cli/src/guide.rs
@@ -124,6 +124,12 @@ fn build() -> Guide {
used_by: "desktop install-cli",
description: "Set to skip editing shell profiles / user PATH during install.",
},
+ EnvVar {
+ name: "CAP_DESKTOP_FORCE_INSTALL",
+ required: false,
+ used_by: "install-cli.sh, install-cli.ps1, update",
+ description: "Force the installer scripts to replace Cap Desktop before linking the CLI.",
+ },
],
exit_codes: vec![
ExitCode {
@@ -201,6 +207,12 @@ fn build() -> Guide {
OutputMode::SingleJson,
&[],
),
+ cmd(
+ "update",
+ "Download and install the latest Cap Desktop bundle, then repair the `cap` shim.",
+ OutputMode::SingleJson,
+ &[],
+ ),
cmd(
"auth status",
"Report whether uploads are authenticated and the source (desktop login or CAP_API_KEY).",