Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
116111c
refactor(cli): harden oclif bridge
cv Apr 30, 2026
5e997cb
test(cli): relax uninstall helper timeouts
cv Apr 30, 2026
88cd958
refactor(cli): migrate status and tunnel commands to oclif
cv Apr 30, 2026
3f748d6
refactor(cli): migrate debug uninstall and gateway-token to oclif
cv Apr 30, 2026
0bc877a
refactor(cli): migrate credentials commands to oclif
cv Apr 30, 2026
3fd15fc
refactor(cli): migrate sandbox inspection commands to oclif
cv Apr 30, 2026
81c62bb
refactor(cli): migrate maintenance commands to oclif
cv Apr 30, 2026
7d6a6fb
refactor(cli): migrate sandbox logs command to oclif
cv May 1, 2026
3f17a4f
refactor(cli): migrate skill install command to oclif
cv May 1, 2026
0fb3c41
refactor(cli): migrate snapshot list and create to oclif
cv May 1, 2026
d11eeee
refactor(cli): migrate shields commands to oclif
cv May 1, 2026
74806ce
refactor(cli): migrate channels mutation commands to oclif
cv May 1, 2026
e637e84
refactor(cli): migrate policy mutation commands to oclif
cv May 1, 2026
ee20dfb
refactor(cli): migrate snapshot restore command to oclif
cv May 1, 2026
8d3a568
refactor(cli): migrate destroy command to oclif
cv May 1, 2026
b447f36
refactor(cli): migrate rebuild command to oclif
cv May 1, 2026
02431db
refactor(cli): migrate connect command to oclif
cv May 1, 2026
37ce2ff
refactor(cli): migrate deploy command to oclif
cv May 1, 2026
d3e218e
refactor(cli): migrate onboard aliases to oclif
cv May 1, 2026
ea91722
merge(main): resolve onboard alias oclif conflicts
cv May 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/lib/oclif-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import DeployCliCommand from "./deploy-cli-command";
import DestroyCliCommand from "./destroy-cli-command";
import GatewayTokenCliCommand from "./gateway-token-cli-command";
import ListCommand from "./list-command";
import {
OnboardCliCommand,
SetupCliCommand,
SetupSparkCliCommand,
} from "./onboard-cli-commands";
import {
BackupAllCommand,
GarbageCollectImagesCommand,
Expand Down Expand Up @@ -61,6 +66,7 @@ export default {
debug: DebugCliCommand,
deploy: DeployCliCommand,
list: ListCommand,
onboard: OnboardCliCommand,
"sandbox:channels:add": ChannelsAddCommand,
"sandbox:channels:list": SandboxChannelsListCommand,
"sandbox:channels:remove": ChannelsRemoveCommand,
Expand All @@ -82,6 +88,8 @@ export default {
"sandbox:snapshot:list": SnapshotListCommand,
"sandbox:snapshot:restore": SnapshotRestoreCommand,
"sandbox:status": SandboxStatusCommand,
setup: SetupCliCommand,
"setup-spark": SetupSparkCliCommand,
share: ShareCommand,
status: StatusCommand,
start: DeprecatedStartCommand,
Expand Down
55 changes: 55 additions & 0 deletions src/lib/onboard-cli-commands.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

/* v8 ignore start -- thin oclif adapters covered through CLI integration tests. */

import { Command } from "@oclif/core";

type RuntimeBridge = {
onboard: (args?: string[]) => Promise<void>;
setup: (args?: string[]) => Promise<void>;
setupSpark: (args?: string[]) => Promise<void>;
};

function getRuntimeBridge(): RuntimeBridge {
return require("../nemoclaw") as RuntimeBridge;
}

export class OnboardCliCommand extends Command {
static id = "onboard";
static strict = false;
static summary = "Configure inference endpoint and credentials";
static description = "Configure inference, credentials, and sandbox settings.";
static usage = ["onboard [flags]"];

public async run(): Promise<void> {
this.parsed = true;
await getRuntimeBridge().onboard(this.argv);
}
}

export class SetupCliCommand extends Command {
static id = "setup";
static strict = false;
static summary = "Deprecated alias for nemoclaw onboard";
static description = "Deprecated alias for onboard.";
static usage = ["setup [flags]"];

public async run(): Promise<void> {
this.parsed = true;
await getRuntimeBridge().setup(this.argv);
}
}

export class SetupSparkCliCommand extends Command {
static id = "setup-spark";
static strict = false;
static summary = "Deprecated alias for nemoclaw onboard";
static description = "Deprecated alias for onboard.";
static usage = ["setup-spark [flags]"];

public async run(): Promise<void> {
this.parsed = true;
await getRuntimeBridge().setupSpark(this.argv);
}
}
9 changes: 6 additions & 3 deletions src/nemoclaw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ exports.captureOpenshell = captureOpenshell;
exports.backupAll = backupAll;
exports.deploy = deploy;
exports.garbageCollectImages = garbageCollectImages;
exports.onboard = onboard;
exports.recoverNamedGatewayRuntime = recoverNamedGatewayRuntime;
exports.recoverRegistryEntries = recoverRegistryEntries;
exports.runOpenshell = runOpenshell;
Expand All @@ -666,6 +667,8 @@ exports.sandboxRebuild = sandboxRebuild;
exports.sandboxSkillInstall = sandboxSkillInstall;
exports.sandboxSnapshot = sandboxSnapshot;
exports.sandboxStatus = sandboxStatus;
exports.setup = setup;
exports.setupSpark = setupSpark;
exports.ensureLiveSandboxOrExit = ensureLiveSandboxOrExit;
exports.G = G;
exports.R = R;
Expand Down Expand Up @@ -4778,13 +4781,13 @@ const mainPromise = (async () => {
if (GLOBAL_COMMANDS.has(cmd)) {
switch (cmd) {
case "onboard":
await onboard(args);
await runOclif("onboard", args);
break;
case "setup":
await setup(args);
await runOclif("setup", args);
break;
case "setup-spark":
await setupSpark(args);
await runOclif("setup-spark", args);
break;
case "deploy":
await runOclif("deploy", args);
Expand Down
Loading