diff --git a/src/docs/cli-reference.md b/src/docs/cli-reference.md index b021509..308ed27 100644 --- a/src/docs/cli-reference.md +++ b/src/docs/cli-reference.md @@ -10,7 +10,6 @@ order: 9 OpenBoot v1.0 has two real verbs: **`install`** adds things to your Mac, **`snapshot`** captures what's on it. Everything else is auth or bookkeeping. ``` -openboot # install (resume or interactive) openboot install [source] # install from preset, file, or cloud config openboot snapshot # capture your environment openboot login / logout # openboot.dev auth @@ -19,9 +18,9 @@ openboot version # print version > **v1.0 removed these commands:** `pull`, `push`, `diff`, `clean`, `log`, `restore`, `init`, `setup-agent`, `doctor`, `update`, `list`, `edit`, `delete`. OpenBoot no longer uninstalls packages or tracks revision history — `install` is add-only, and `snapshot --publish` overwrites. Manage configs on the [dashboard](/dashboard). See the project [CHANGELOG](https://github.com/openbootdotdev/openboot/blob/main/CHANGELOG.md) for migration. -## `openboot` / `openboot install` +## `openboot install` -Install and configure your Mac. `openboot` with no subcommand is identical to `openboot install`. +Install and configure your Mac. ``` openboot install [source] diff --git a/src/lib/server/install-script.test.ts b/src/lib/server/install-script.test.ts index 480b636..1f8bda3 100644 --- a/src/lib/server/install-script.test.ts +++ b/src/lib/server/install-script.test.ts @@ -137,7 +137,7 @@ describe('generateInstallScript', () => { expect(script).toContain('OpenBoot Installer'); expect(script).toContain('Config: @testuser/my-config'); expect(script).toContain('api.github.com/repos/${OPENBOOT_REPO}/releases/latest'); - expect(script).toContain('--user "testuser/my-config"'); + expect(script).toContain('openboot install "testuser/my-config"'); }); it('should include Xcode CLT installation', () => { @@ -194,6 +194,6 @@ describe('generateInstallScript', () => { it('should pass through additional arguments to openboot', () => { const script = generateInstallScript('testuser', 'my-config'); - expect(script).toContain('openboot --user "testuser/my-config" "$@"'); + expect(script).toContain('openboot install "testuser/my-config" "$@"'); }); }); diff --git a/src/lib/server/install-script.ts b/src/lib/server/install-script.ts index f07f1b2..ee68440 100644 --- a/src/lib/server/install-script.ts +++ b/src/lib/server/install-script.ts @@ -251,7 +251,7 @@ install_openboot "\$os" "\$arch" echo "" echo "Starting OpenBoot setup with config: @${safeUsername}/${safeSlug}" echo "" -openboot --user "${safeUsername}/${safeSlug}" "\$@" +openboot install "${safeUsername}/${safeSlug}" "\$@" echo "" echo "Installation complete!"