Skip to content

Commit 53a84cc

Browse files
authored
feat(cli): add --from flag to sandbox create for unified image sources (#89)
1 parent b62c42f commit 53a84cc

13 files changed

Lines changed: 802 additions & 491 deletions

File tree

‎.agents/skills/nemoclaw-cli/SKILL.md‎

Lines changed: 103 additions & 120 deletions
Large diffs are not rendered by default.

‎.agents/skills/nemoclaw-cli/cli-reference.md‎

Lines changed: 40 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# NemoClaw CLI Reference
22

3-
Quick-reference for the `nemoclaw` (aliased as `ncl`) command-line interface. For workflow guidance, see [SKILL.md](SKILL.md).
3+
Quick-reference for the `nemoclaw` command-line interface. For workflow guidance, see [SKILL.md](SKILL.md).
44

5-
> **Self-teaching**: If a command or flag is not listed here, use `ncl <command> --help` to discover it. The CLI has comprehensive built-in help at every level.
5+
> **Self-teaching**: If a command or flag is not listed here, use `nemoclaw <command> --help` to discover it. The CLI has comprehensive built-in help at every level.
66
77
## Global Options
88

@@ -23,7 +23,7 @@ Quick-reference for the `nemoclaw` (aliased as `ncl`) command-line interface. Fo
2323
## Complete Command Tree
2424

2525
```
26-
nemoclaw (ncl)
26+
nemoclaw
2727
├── cluster
2828
│ ├── status
2929
│ ├── use <name>
@@ -73,19 +73,19 @@ nemoclaw (ncl)
7373

7474
## Cluster Commands
7575

76-
### `ncl cluster status`
76+
### `nemoclaw cluster status`
7777

7878
Show server connectivity and version.
7979

80-
### `ncl cluster use <name>`
80+
### `nemoclaw cluster use <name>`
8181

8282
Set the active cluster. Writes to `~/.config/nemoclaw/active_cluster`.
8383

84-
### `ncl cluster list`
84+
### `nemoclaw cluster list`
8585

8686
List all provisioned clusters. Active cluster marked with `*`.
8787

88-
### `ncl cluster admin deploy`
88+
### `nemoclaw cluster admin deploy`
8989

9090
Provision or start a cluster (local or remote).
9191

@@ -100,7 +100,7 @@ Provision or start a cluster (local or remote).
100100
| `--update-kube-config` | false | Write kubeconfig into `~/.kube/config` |
101101
| `--get-kubeconfig` | false | Print kubeconfig to stdout |
102102

103-
### `ncl cluster admin stop`
103+
### `nemoclaw cluster admin stop`
104104

105105
Stop a cluster (preserves state for later restart).
106106

@@ -110,19 +110,19 @@ Stop a cluster (preserves state for later restart).
110110
| `--remote <USER@HOST>` | SSH destination |
111111
| `--ssh-key <PATH>` | SSH private key |
112112

113-
### `ncl cluster admin destroy`
113+
### `nemoclaw cluster admin destroy`
114114

115115
Destroy a cluster and all its state. Same flags as `stop`.
116116

117-
### `ncl cluster admin info`
117+
### `nemoclaw cluster admin info`
118118

119119
Show deployment details: endpoint, kubeconfig path, kube port, remote host.
120120

121121
| Flag | Description |
122122
|------|-------------|
123123
| `--name <NAME>` | Cluster name (defaults to active) |
124124

125-
### `ncl cluster admin tunnel`
125+
### `nemoclaw cluster admin tunnel`
126126

127127
Print or start an SSH tunnel for kubectl access to a remote cluster.
128128

@@ -137,28 +137,30 @@ Print or start an SSH tunnel for kubectl access to a remote cluster.
137137

138138
## Sandbox Commands
139139

140-
### `ncl sandbox create [OPTIONS] [-- COMMAND...]`
140+
### `nemoclaw sandbox create [OPTIONS] [-- COMMAND...]`
141141

142142
Create a sandbox, wait for readiness, then connect or execute the trailing command. Auto-bootstraps a cluster if none exists.
143143

144144
| Flag | Description |
145145
|------|-------------|
146146
| `--name <NAME>` | Sandbox name (auto-generated if omitted) |
147-
| `--image <IMAGE>` | Custom container image (BYOC) |
147+
| `--from <SOURCE>` | Sandbox source: community name, Dockerfile path, directory, or image reference (BYOC) |
148148
| `--sync` | Sync local git-tracked files into sandbox at `/sandbox` |
149149
| `--keep` | Keep sandbox alive after non-interactive commands finish |
150150
| `--provider <NAME>` | Provider to attach (repeatable) |
151151
| `--policy <PATH>` | Path to custom policy YAML |
152152
| `--forward <PORT>` | Forward local port to sandbox (implies `--keep`) |
153153
| `--remote <USER@HOST>` | SSH destination for auto-bootstrap |
154154
| `--ssh-key <PATH>` | SSH private key for auto-bootstrap |
155+
| `--tty` | Force pseudo-terminal allocation |
156+
| `--no-tty` | Disable pseudo-terminal allocation |
155157
| `[-- COMMAND...]` | Command to execute (defaults to interactive shell) |
156158

157-
### `ncl sandbox get <name>`
159+
### `nemoclaw sandbox get <name>`
158160

159161
Show sandbox details (id, name, namespace, phase, policy).
160162

161-
### `ncl sandbox list`
163+
### `nemoclaw sandbox list`
162164

163165
List sandboxes in a table.
164166

@@ -169,15 +171,15 @@ List sandboxes in a table.
169171
| `--ids` | false | Print only sandbox IDs |
170172
| `--names` | false | Print only sandbox names |
171173

172-
### `ncl sandbox delete <NAME>...`
174+
### `nemoclaw sandbox delete <NAME>...`
173175

174176
Delete one or more sandboxes by name. Stops any background port forwards.
175177

176-
### `ncl sandbox connect <name>`
178+
### `nemoclaw sandbox connect <name>`
177179

178180
Open an interactive SSH shell to a sandbox.
179181

180-
### `ncl sandbox sync <name> {--up <path> | --down <path>} [dest]`
182+
### `nemoclaw sandbox sync <name> {--up <path> | --down <path>} [dest]`
181183

182184
Sync files to/from a sandbox using tar-over-SSH.
183185

@@ -187,7 +189,7 @@ Sync files to/from a sandbox using tar-over-SSH.
187189
| `--down <SANDBOX_PATH>` | Pull sandbox files to local |
188190
| `[DEST]` | Destination path (default: `/sandbox` for up, `.` for down) |
189191

190-
### `ncl sandbox logs <name>`
192+
### `nemoclaw sandbox logs <name>`
191193

192194
View sandbox logs. Supports one-shot and streaming.
193195

@@ -199,15 +201,15 @@ View sandbox logs. Supports one-shot and streaming.
199201
| `--source <SOURCE>` | `all` | Filter: `gateway`, `sandbox`, or `all` (repeatable) |
200202
| `--level <LEVEL>` | none | Minimum level: `error`, `warn`, `info`, `debug`, `trace` |
201203

202-
### `ncl sandbox ssh-config <name>`
204+
### `nemoclaw sandbox ssh-config <name>`
203205

204206
Print an SSH config `Host` block for a sandbox. Useful for VS Code Remote-SSH.
205207

206208
---
207209

208210
## Port Forwarding Commands
209211

210-
### `ncl sandbox forward start <port> <name>`
212+
### `nemoclaw sandbox forward start <port> <name>`
211213

212214
Start forwarding a local port to a sandbox.
213215

@@ -217,34 +219,19 @@ Start forwarding a local port to a sandbox.
217219
| `<name>` | Sandbox name |
218220
| `-d`, `--background` | Run in background |
219221

220-
### `ncl sandbox forward stop <port> <name>`
222+
### `nemoclaw sandbox forward stop <port> <name>`
221223

222224
Stop a background port forward.
223225

224-
### `ncl sandbox forward list`
226+
### `nemoclaw sandbox forward list`
225227

226228
List all active port forwards (sandbox, port, PID, status).
227229

228230
---
229231

230-
## Custom Image Commands (BYOC)
231-
232-
### `ncl sandbox image push`
233-
234-
Build a container image and push it into the cluster's internal registry.
235-
236-
| Flag | Description |
237-
|------|-------------|
238-
| `--dockerfile <PATH>` | Path to Dockerfile (required) |
239-
| `--tag <NAME:TAG>` | Image name and tag (default: `navigator/sandbox-custom:<timestamp>`) |
240-
| `--context <PATH>` | Build context directory (default: Dockerfile parent) |
241-
| `--build-arg KEY=VALUE` | Build argument (repeatable) |
242-
243-
---
244-
245232
## Policy Commands
246233

247-
### `ncl sandbox policy set <name> --policy <PATH>`
234+
### `nemoclaw sandbox policy set <name> --policy <PATH>`
248235

249236
Update the policy on a live sandbox. Only dynamic fields (`network_policies`, `inference`) can be changed at runtime.
250237

@@ -256,7 +243,7 @@ Update the policy on a live sandbox. Only dynamic fields (`network_policies`, `i
256243

257244
Exit codes with `--wait`: 0 = loaded, 1 = failed, 124 = timeout.
258245

259-
### `ncl sandbox policy get <name>`
246+
### `nemoclaw sandbox policy get <name>`
260247

261248
Show current active policy for a sandbox.
262249

@@ -265,7 +252,7 @@ Show current active policy for a sandbox.
265252
| `--rev <VERSION>` | 0 (latest) | Show a specific revision |
266253
| `--full` | false | Print the full policy as YAML (round-trips with `--policy` input) |
267254

268-
### `ncl sandbox policy list <name>`
255+
### `nemoclaw sandbox policy list <name>`
269256

270257
List policy revision history (version, hash, status, created, error).
271258

@@ -279,7 +266,7 @@ List policy revision history (version, hash, status, created, error).
279266

280267
Supported provider types: `claude`, `opencode`, `codex`, `generic`, `nvidia`, `gitlab`, `github`, `outlook`.
281268

282-
### `ncl provider create --name <NAME> --type <TYPE>`
269+
### `nemoclaw provider create --name <NAME> --type <TYPE>`
283270

284271
Create a provider configuration.
285272

@@ -291,11 +278,11 @@ Create a provider configuration.
291278
| `--credential KEY[=VALUE]` | Credential pair. Bare `KEY` reads from env var. Repeatable. |
292279
| `--config KEY=VALUE` | Config key/value pair. Repeatable. |
293280

294-
### `ncl provider get <name>`
281+
### `nemoclaw provider get <name>`
295282

296283
Show provider details (id, name, type, credential keys, config keys).
297284

298-
### `ncl provider list`
285+
### `nemoclaw provider list`
299286

300287
List providers in a table.
301288

@@ -305,19 +292,19 @@ List providers in a table.
305292
| `--offset <N>` | 0 | Pagination offset |
306293
| `--names` | false | Print only names |
307294

308-
### `ncl provider update <name> --type <TYPE>`
295+
### `nemoclaw provider update <name> --type <TYPE>`
309296

310297
Update an existing provider. Same flags as `create`.
311298

312-
### `ncl provider delete <NAME>...`
299+
### `nemoclaw provider delete <NAME>...`
313300

314301
Delete one or more providers by name.
315302

316303
---
317304

318305
## Inference Commands
319306

320-
### `ncl inference create`
307+
### `nemoclaw inference create`
321308

322309
Create an inference route. Auto-detects supported protocols if `--protocol` is omitted.
323310

@@ -331,15 +318,15 @@ Create an inference route. Auto-detects supported protocols if `--protocol` is o
331318
| `--model-id <ID>` | -- | Model identifier (required) |
332319
| `--disabled` | false | Create in disabled state |
333320

334-
### `ncl inference update <name>`
321+
### `nemoclaw inference update <name>`
335322

336323
Update an existing inference route. Same flags as `create`.
337324

338-
### `ncl inference delete <NAME>...`
325+
### `nemoclaw inference delete <NAME>...`
339326

340327
Delete inference routes by name.
341328

342-
### `ncl inference list`
329+
### `nemoclaw inference list`
343330

344331
List inference routes.
345332

@@ -352,14 +339,14 @@ List inference routes.
352339

353340
## Other Commands
354341

355-
### `ncl gator`
342+
### `nemoclaw gator`
356343

357344
Launch the Gator interactive TUI.
358345

359-
### `ncl completions <shell>`
346+
### `nemoclaw completions <shell>`
360347

361348
Generate shell completion scripts. Supported shells: `bash`, `fish`, `zsh`, `powershell`.
362349

363-
### `ncl ssh-proxy`
350+
### `nemoclaw ssh-proxy`
364351

365352
SSH proxy used as a `ProxyCommand`. Not typically invoked directly.

0 commit comments

Comments
 (0)