@ornncompute/cli 1.0.155 → 1.0.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -30
- package/package.json +1 -1
- package/src/catalog-shell.mjs +2 -39
- package/vendor/api-client/orchestrator.js +13 -0
- package/vendor/capabilities/cli.js +0 -259
package/README.md
CHANGED
|
@@ -360,36 +360,9 @@ error record. Progress is additive and contains no secret or supplier identity.
|
|
|
360
360
|
|
|
361
361
|
## Migrating to vNext
|
|
362
362
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
| Retired form | Replacement |
|
|
367
|
-
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
|
|
368
|
-
| `ornn account`, `ornn whoami` | `ornn context` |
|
|
369
|
-
| `ornn catalog search`, `gpu-types`, `availability *`, `listing *`, `listings` read leaves | matching `ornn capacity-offers` leaf |
|
|
370
|
-
| `ornn listings create` | `ornn admin capacity-offers create` |
|
|
371
|
-
| `ornn buy` | Use the Ornn web app. |
|
|
372
|
-
| `ornn bid create`, `exchange create` | Use the Ornn web app. |
|
|
373
|
-
| `ornn bid` or `exchange` list, show, update, withdraw | Use the Ornn web app. |
|
|
374
|
-
| `ornn gpu` or `gpus` list, show | Use the Ornn web app. |
|
|
375
|
-
| `ornn gpu` or `gpus` checkout, `reservations checkout` | Use the Ornn web app. |
|
|
376
|
-
| `ornn nodes launch` | `ornn launch` |
|
|
377
|
-
| `ornn nodes` list, show, wait, switch, reboot, hard-reset | matching `ornn machines` leaf; reset needs erase flag |
|
|
378
|
-
| `ornn ssh`, `nodes ssh-command` | `ornn connect` |
|
|
379
|
-
| `ornn metrics`, `telemetry`, `logs` | `ornn check`, `machines metrics`, or `machines logs` |
|
|
380
|
-
| `ornn clusters create`, `kubernetes launch`, `slurm launch` | `ornn launch --mode kubernetes` or `ornn launch --mode slurm` |
|
|
381
|
-
| Kubernetes or Slurm status, credentials, SSH, teardown | `ornn clusters show`, `connect`, or `clusters teardown` |
|
|
382
|
-
| `ornn network *`, `networks *` | `ornn private-networks <verb>` |
|
|
383
|
-
| `ornn access *`, `keys` | exact `ornn machines` or `ornn ssh-keys` leaf printed |
|
|
384
|
-
| `ornn storage volumes *` | `ornn volumes <verb>` |
|
|
385
|
-
| `ornn storage files *` | `ornn volumes files <verb>` |
|
|
386
|
-
| `ornn storage buckets *` | `ornn external-buckets <verb>` |
|
|
387
|
-
| Storage targets, deploy, status, detach | exact `ornn volume-mounts` leaf printed |
|
|
388
|
-
| `ornn billing` | Use the Ornn web app. |
|
|
389
|
-
| customer-root `facilities`, `tokens`, `users`, `node`, or staff `reservations *` | exact `ornn admin ...` command printed by the error |
|
|
390
|
-
| `ornn api`, `commerce`, `orchestrator`, `cache purge` | `ornn resources`; no generic replacement exists |
|
|
391
|
-
| `--json` | `--format json` |
|
|
392
|
-
| `--interactive` | `--guided` |
|
|
363
|
+
Unsupported commands and options exit `2` without executing a request. Use
|
|
364
|
+
`ornn help` to discover current commands. Historical command replacements are
|
|
365
|
+
in the [customer migration guide](https://docs.ornn.com/cli#migrating-to-vnext).
|
|
393
366
|
|
|
394
367
|
Changed behavior is intentional: waits are deadline-bound, mutations execute
|
|
395
368
|
directly, pagination is bounded and cursor-based, machine output is always
|
package/package.json
CHANGED
package/src/catalog-shell.mjs
CHANGED
|
@@ -218,44 +218,12 @@ function commandGroup(catalog, path) {
|
|
|
218
218
|
return matches.length ? matches : null;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
function
|
|
222
|
-
if (argv.includes("--json")) {
|
|
223
|
-
const replacement = argv
|
|
224
|
-
.map((argument) => (argument === "--json" ? "--format json" : argument))
|
|
225
|
-
.join(" ");
|
|
226
|
-
return new VnextUsageError(
|
|
227
|
-
`Retired syntax: --json. Use \`ornn ${replacement}\`. See ${migrationGuideUrl}`,
|
|
228
|
-
{ code: "legacy_command_removed", field: "format" }
|
|
229
|
-
);
|
|
230
|
-
}
|
|
231
|
-
if (argv.includes("--interactive")) {
|
|
232
|
-
const replacement = argv
|
|
233
|
-
.map((argument) => (argument === "--interactive" ? "--guided" : argument))
|
|
234
|
-
.join(" ");
|
|
235
|
-
return new VnextUsageError(
|
|
236
|
-
`Retired syntax: --interactive. Use \`ornn ${replacement}\`. See ${migrationGuideUrl}`,
|
|
237
|
-
{ code: "legacy_command_removed", field: "guided" }
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
const migration = findLegacyCliMigration?.(argv);
|
|
241
|
-
if (!migration) return null;
|
|
242
|
-
return new VnextUsageError(
|
|
243
|
-
`Retired command: ornn ${migration.legacy.join(" ")}. Use \`${migration.replacement}\`. See ${migrationGuideUrl}`,
|
|
244
|
-
{ code: "legacy_command_removed" }
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
function resolveRequest(catalog, argvIn, findLegacyCliMigration, migrationGuideUrl) {
|
|
221
|
+
function resolveRequest(catalog, argvIn) {
|
|
249
222
|
const argv = argvIn[0] === "--help" || argvIn[0] === "-h" ? ["help", ...argvIn.slice(1)] : argvIn;
|
|
250
223
|
if (argv.length === 0) {
|
|
251
224
|
return { kind: "root", command: "help" };
|
|
252
225
|
}
|
|
253
226
|
|
|
254
|
-
const retired = retiredSyntaxError(argv, findLegacyCliMigration, migrationGuideUrl);
|
|
255
|
-
if (retired) {
|
|
256
|
-
return { kind: "error", command: argv.slice(0, 2).join(" ") || "help", error: retired };
|
|
257
|
-
}
|
|
258
|
-
|
|
259
227
|
if (argv[0] === "admin") {
|
|
260
228
|
return { kind: "admin", command: "admin", argv: argv.slice(1) };
|
|
261
229
|
}
|
|
@@ -1030,12 +998,7 @@ export async function runCatalogCli(argv, io, { version }) {
|
|
|
1030
998
|
const capabilities = await loadCapabilities();
|
|
1031
999
|
const catalog = capabilities.catalog;
|
|
1032
1000
|
const parsed = extractFormat(argv);
|
|
1033
|
-
const request = resolveRequest(
|
|
1034
|
-
catalog,
|
|
1035
|
-
parsed.remaining,
|
|
1036
|
-
capabilities.findLegacyCliMigration,
|
|
1037
|
-
capabilities.CLI_MIGRATION_GUIDE_URL
|
|
1038
|
-
);
|
|
1001
|
+
const request = resolveRequest(catalog, parsed.remaining);
|
|
1039
1002
|
|
|
1040
1003
|
const stdin = io.stdin ?? process.stdin;
|
|
1041
1004
|
const stdout = io.stdout ?? process.stdout;
|
|
@@ -489,6 +489,17 @@ function geolocate(request, query, signal) {
|
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
+
// ../../packages/api-client/dist/orchestrator/customer-profiles.js
|
|
493
|
+
function getCustomerServicingProfile(request, organizationId, signal) {
|
|
494
|
+
return request(`/v1/orchestrator/customer-profiles/${encodeURIComponent(organizationId)}`, {
|
|
495
|
+
method: "GET",
|
|
496
|
+
signal
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
function saveServicingRequirement(request, organizationId, id, body) {
|
|
500
|
+
return request(`/v1/orchestrator/customer-profiles/${encodeURIComponent(organizationId)}/requirements/${encodeURIComponent(id)}`, { method: "PUT", body });
|
|
501
|
+
}
|
|
502
|
+
|
|
492
503
|
// ../../packages/api-client/dist/orchestrator/maintenance-history.js
|
|
493
504
|
function listMaintenanceHistory(request, filter = {}, signal) {
|
|
494
505
|
const query = new URLSearchParams();
|
|
@@ -1030,6 +1041,7 @@ export {
|
|
|
1030
1041
|
getContainerRegistry,
|
|
1031
1042
|
getControllerAccess,
|
|
1032
1043
|
getCurrentShellSession,
|
|
1044
|
+
getCustomerServicingProfile,
|
|
1033
1045
|
getDrive,
|
|
1034
1046
|
getEnrollmentAdminSshKey,
|
|
1035
1047
|
getEnrollmentHost,
|
|
@@ -1119,6 +1131,7 @@ export {
|
|
|
1119
1131
|
revokeEnrollmentToken,
|
|
1120
1132
|
rotateEnrollmentAdminSshKey,
|
|
1121
1133
|
runRemote,
|
|
1134
|
+
saveServicingRequirement,
|
|
1122
1135
|
setControlplaneSize,
|
|
1123
1136
|
shellSessionAttachPath,
|
|
1124
1137
|
startAgentRollout,
|
|
@@ -7021,262 +7021,6 @@ function isCustomerSensitiveField(record, key) {
|
|
|
7021
7021
|
return PRIVATE_OUTPUT_KEYS.has(normalizedKey(key)) || isSupplierIdentityField(record, key);
|
|
7022
7022
|
}
|
|
7023
7023
|
|
|
7024
|
-
// ../../packages/capabilities/dist/cli-migrations.js
|
|
7025
|
-
var CLI_MIGRATION_GUIDE_URL = "https://docs.ornn.com/cli#migrating-to-vnext";
|
|
7026
|
-
var LEGACY_CLI_MIGRATIONS = [
|
|
7027
|
-
{ legacy: ["account"], replacement: "ornn context" },
|
|
7028
|
-
{ legacy: ["whoami"], replacement: "ornn context" },
|
|
7029
|
-
{ legacy: ["catalog", "search"], replacement: "ornn capacity-offers list" },
|
|
7030
|
-
{ legacy: ["gpu-types"], replacement: "ornn capacity-offers list" },
|
|
7031
|
-
{ legacy: ["availability", "list"], replacement: "ornn capacity-offers list" },
|
|
7032
|
-
{ legacy: ["availability", "forecast"], replacement: "ornn capacity-offers availability" },
|
|
7033
|
-
{ legacy: ["availability", "show"], replacement: "ornn capacity-offers show" },
|
|
7034
|
-
{ legacy: ["listing", "list"], replacement: "ornn capacity-offers list" },
|
|
7035
|
-
{ legacy: ["listing", "forecast"], replacement: "ornn capacity-offers availability" },
|
|
7036
|
-
{ legacy: ["listing", "show"], replacement: "ornn capacity-offers show" },
|
|
7037
|
-
{ legacy: ["listings", "list"], replacement: "ornn capacity-offers list" },
|
|
7038
|
-
{ legacy: ["listings", "forecast"], replacement: "ornn capacity-offers availability" },
|
|
7039
|
-
{ legacy: ["listings", "show"], replacement: "ornn capacity-offers show" },
|
|
7040
|
-
{ legacy: ["listings", "create"], replacement: "ornn admin capacity-offers create" },
|
|
7041
|
-
{ legacy: ["buy"], replacement: "ornn offers post" },
|
|
7042
|
-
{ legacy: ["schedules", "list"], replacement: "ornn capacity-offers list --kind secondary" },
|
|
7043
|
-
{ legacy: ["schedules", "show"], replacement: "ornn capacity-offers availability" },
|
|
7044
|
-
{ legacy: ["schedules", "buy"], replacement: "ornn reservations buy" },
|
|
7045
|
-
{ legacy: ["schedules"], replacement: "ornn capacity-offers list" },
|
|
7046
|
-
{ legacy: ["bid", "create"], replacement: "ornn market bid" },
|
|
7047
|
-
{ legacy: ["bid", "list"], replacement: "ornn market orders" },
|
|
7048
|
-
{ legacy: ["bid", "show"], replacement: "ornn market orders" },
|
|
7049
|
-
{ legacy: ["bid", "update"], replacement: "ornn market bid" },
|
|
7050
|
-
{ legacy: ["bid", "withdraw"], replacement: "ornn market cancel" },
|
|
7051
|
-
{
|
|
7052
|
-
legacy: ["exchange", "create"],
|
|
7053
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7054
|
-
},
|
|
7055
|
-
{
|
|
7056
|
-
legacy: ["exchange", "list"],
|
|
7057
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7058
|
-
},
|
|
7059
|
-
{
|
|
7060
|
-
legacy: ["exchange", "show"],
|
|
7061
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7062
|
-
},
|
|
7063
|
-
{
|
|
7064
|
-
legacy: ["exchange", "update"],
|
|
7065
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7066
|
-
},
|
|
7067
|
-
{
|
|
7068
|
-
legacy: ["exchange", "withdraw"],
|
|
7069
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7070
|
-
},
|
|
7071
|
-
{
|
|
7072
|
-
legacy: ["gpu", "list"],
|
|
7073
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7074
|
-
},
|
|
7075
|
-
{
|
|
7076
|
-
legacy: ["gpu", "show"],
|
|
7077
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7078
|
-
},
|
|
7079
|
-
{
|
|
7080
|
-
legacy: ["gpu", "checkout"],
|
|
7081
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7082
|
-
},
|
|
7083
|
-
{
|
|
7084
|
-
legacy: ["gpus", "list"],
|
|
7085
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7086
|
-
},
|
|
7087
|
-
{
|
|
7088
|
-
legacy: ["gpus", "show"],
|
|
7089
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7090
|
-
},
|
|
7091
|
-
{
|
|
7092
|
-
legacy: ["gpus", "checkout"],
|
|
7093
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7094
|
-
},
|
|
7095
|
-
{ legacy: ["tenant", "reservations"], replacement: "ornn reservations list" },
|
|
7096
|
-
{ legacy: ["reservations", "checkout"], replacement: "ornn reservations show" },
|
|
7097
|
-
{
|
|
7098
|
-
legacy: ["reservations", "operator"],
|
|
7099
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7100
|
-
},
|
|
7101
|
-
{ legacy: ["reservations", "commerce", "create"], replacement: "ornn admin reservations create" },
|
|
7102
|
-
{
|
|
7103
|
-
legacy: ["reservations", "commerce"],
|
|
7104
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7105
|
-
},
|
|
7106
|
-
{ legacy: ["reservations", "deploy"], replacement: "ornn admin nodes assign" },
|
|
7107
|
-
{
|
|
7108
|
-
legacy: ["reservations", "transfer"],
|
|
7109
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7110
|
-
},
|
|
7111
|
-
{ legacy: ["nodes", "launch"], replacement: "ornn launch" },
|
|
7112
|
-
{ legacy: ["nodes", "list"], replacement: "ornn machines list" },
|
|
7113
|
-
{ legacy: ["nodes", "show"], replacement: "ornn machines show" },
|
|
7114
|
-
{ legacy: ["nodes", "wait"], replacement: "ornn machines wait" },
|
|
7115
|
-
{ legacy: ["nodes", "switch"], replacement: "ornn machines switch" },
|
|
7116
|
-
{ legacy: ["nodes", "reboot"], replacement: "ornn machines reboot" },
|
|
7117
|
-
{ legacy: ["nodes", "hard-reset"], replacement: "ornn machines reset --erase-local-data" },
|
|
7118
|
-
{ legacy: ["nodes", "ssh-command"], replacement: "ornn connect" },
|
|
7119
|
-
{ legacy: ["nodes", "keys"], replacement: "ornn ssh-keys assignments status" },
|
|
7120
|
-
{ legacy: ["nodes", "keys", "attach"], replacement: "ornn ssh-keys assignments assign" },
|
|
7121
|
-
{ legacy: ["nodes", "keys", "list"], replacement: "ornn ssh-keys assignments list" },
|
|
7122
|
-
{ legacy: ["ssh"], replacement: "ornn connect" },
|
|
7123
|
-
{ legacy: ["metrics", "nodes"], replacement: "ornn check" },
|
|
7124
|
-
{ legacy: ["metrics", "node"], replacement: "ornn check" },
|
|
7125
|
-
{ legacy: ["metrics", "history"], replacement: "ornn machines metrics" },
|
|
7126
|
-
{ legacy: ["metrics", "watch"], replacement: "ornn machines metrics --follow" },
|
|
7127
|
-
{ legacy: ["metrics"], replacement: "ornn check" },
|
|
7128
|
-
{ legacy: ["telemetry", "latest"], replacement: "ornn machines metrics" },
|
|
7129
|
-
{ legacy: ["telemetry", "tail"], replacement: "ornn machines metrics --follow" },
|
|
7130
|
-
{ legacy: ["telemetry"], replacement: "ornn machines metrics" },
|
|
7131
|
-
{ legacy: ["logs", "latest"], replacement: "ornn machines logs" },
|
|
7132
|
-
{ legacy: ["logs", "tail"], replacement: "ornn machines logs --follow" },
|
|
7133
|
-
{ legacy: ["logs"], replacement: "ornn machines logs" },
|
|
7134
|
-
{ legacy: ["cluster", "list"], replacement: "ornn clusters list" },
|
|
7135
|
-
{
|
|
7136
|
-
legacy: ["cluster", "reservations"],
|
|
7137
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7138
|
-
},
|
|
7139
|
-
{ legacy: ["cluster", "eligible-nodes"], replacement: "ornn clusters eligible-machines" },
|
|
7140
|
-
{ legacy: ["cluster", "create"], replacement: "ornn launch --mode <kubernetes|slurm>" },
|
|
7141
|
-
{ legacy: ["cluster", "show"], replacement: "ornn clusters show" },
|
|
7142
|
-
{ legacy: ["cluster", "wait"], replacement: "ornn clusters wait" },
|
|
7143
|
-
{ legacy: ["cluster", "credentials"], replacement: "ornn connect" },
|
|
7144
|
-
{ legacy: ["cluster", "kubeconfig"], replacement: "ornn connect --output <path>" },
|
|
7145
|
-
{ legacy: ["cluster", "ssh-command"], replacement: "ornn connect --print" },
|
|
7146
|
-
{ legacy: ["cluster", "ssh"], replacement: "ornn connect" },
|
|
7147
|
-
{ legacy: ["cluster", "add-node"], replacement: "ornn clusters add-node" },
|
|
7148
|
-
{ legacy: ["cluster", "remove-node"], replacement: "ornn clusters remove-node" },
|
|
7149
|
-
{ legacy: ["cluster", "teardown"], replacement: "ornn clusters teardown" },
|
|
7150
|
-
{ legacy: ["cluster"], replacement: "ornn clusters list" },
|
|
7151
|
-
{
|
|
7152
|
-
legacy: ["clusters", "reservations"],
|
|
7153
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7154
|
-
},
|
|
7155
|
-
{ legacy: ["clusters", "eligible-nodes"], replacement: "ornn clusters eligible-machines" },
|
|
7156
|
-
{ legacy: ["clusters", "create"], replacement: "ornn launch --mode kubernetes" },
|
|
7157
|
-
{ legacy: ["clusters", "credentials"], replacement: "ornn connect" },
|
|
7158
|
-
{ legacy: ["clusters", "kubeconfig"], replacement: "ornn connect --output <path>" },
|
|
7159
|
-
{ legacy: ["clusters", "ssh-command"], replacement: "ornn connect --print" },
|
|
7160
|
-
{ legacy: ["clusters", "ssh"], replacement: "ornn connect" },
|
|
7161
|
-
{ legacy: ["kubernetes", "launch"], replacement: "ornn launch --mode kubernetes" },
|
|
7162
|
-
{ legacy: ["kubernetes", "status"], replacement: "ornn clusters show" },
|
|
7163
|
-
{ legacy: ["kubernetes", "credentials"], replacement: "ornn connect --output <path>" },
|
|
7164
|
-
{ legacy: ["kubernetes", "kubeconfig"], replacement: "ornn connect --output <path>" },
|
|
7165
|
-
{ legacy: ["kubernetes", "teardown"], replacement: "ornn clusters teardown" },
|
|
7166
|
-
{ legacy: ["slurm", "launch"], replacement: "ornn launch --mode slurm" },
|
|
7167
|
-
{ legacy: ["slurm", "status"], replacement: "ornn clusters show" },
|
|
7168
|
-
{ legacy: ["slurm", "credentials"], replacement: "ornn connect" },
|
|
7169
|
-
{ legacy: ["slurm", "ssh"], replacement: "ornn connect" },
|
|
7170
|
-
{ legacy: ["slurm", "teardown"], replacement: "ornn clusters teardown" },
|
|
7171
|
-
{ legacy: ["network", "list"], replacement: "ornn private-networks list" },
|
|
7172
|
-
{ legacy: ["networks", "list"], replacement: "ornn private-networks list" },
|
|
7173
|
-
{ legacy: ["networks", "show"], replacement: "ornn private-networks show" },
|
|
7174
|
-
{ legacy: ["networks", "create"], replacement: "ornn private-networks create" },
|
|
7175
|
-
{ legacy: ["networks", "update"], replacement: "ornn private-networks update" },
|
|
7176
|
-
{ legacy: ["networks", "delete"], replacement: "ornn private-networks delete" },
|
|
7177
|
-
{ legacy: ["networks", "reservation"], replacement: "ornn private-networks list" },
|
|
7178
|
-
{ legacy: ["networks", "attach"], replacement: "ornn private-networks list" },
|
|
7179
|
-
{ legacy: ["networks", "detach"], replacement: "ornn private-networks list" },
|
|
7180
|
-
{ legacy: ["access", "show"], replacement: "ornn machines show" },
|
|
7181
|
-
{ legacy: ["access", "activate"], replacement: "ornn launch" },
|
|
7182
|
-
{ legacy: ["access", "switch"], replacement: "ornn machines switch" },
|
|
7183
|
-
{ legacy: ["access", "push-keys"], replacement: "ornn ssh-keys assignments sync" },
|
|
7184
|
-
{ legacy: ["access", "keys", "list"], replacement: "ornn ssh-keys assignments list" },
|
|
7185
|
-
{ legacy: ["access", "keys", "add"], replacement: "ornn ssh-keys assignments assign" },
|
|
7186
|
-
{ legacy: ["access", "keys", "push"], replacement: "ornn ssh-keys assignments sync" },
|
|
7187
|
-
{ legacy: ["access", "keys", "status"], replacement: "ornn ssh-keys assignments status" },
|
|
7188
|
-
{ legacy: ["access", "keys"], replacement: "ornn ssh-keys assignments list" },
|
|
7189
|
-
{ legacy: ["keys", "list"], replacement: "ornn ssh-keys list" },
|
|
7190
|
-
{ legacy: ["keys", "add"], replacement: "ornn ssh-keys add" },
|
|
7191
|
-
{ legacy: ["keys", "delete"], replacement: "ornn ssh-keys delete" },
|
|
7192
|
-
{ legacy: ["keys"], replacement: "ornn ssh-keys list" },
|
|
7193
|
-
{ legacy: ["storage", "volumes", "list"], replacement: "ornn volumes list" },
|
|
7194
|
-
{ legacy: ["storage", "volumes", "show"], replacement: "ornn volumes show" },
|
|
7195
|
-
{ legacy: ["storage", "volumes", "refresh"], replacement: "ornn volumes refresh" },
|
|
7196
|
-
{ legacy: ["storage", "volumes", "clear"], replacement: "ornn volumes clear" },
|
|
7197
|
-
{ legacy: ["storage", "volumes", "create"], replacement: "ornn volumes create" },
|
|
7198
|
-
{ legacy: ["storage", "volumes", "delete"], replacement: "ornn volumes delete" },
|
|
7199
|
-
{ legacy: ["storage", "files", "ls"], replacement: "ornn volumes files list" },
|
|
7200
|
-
{ legacy: ["storage", "files", "list"], replacement: "ornn volumes files list" },
|
|
7201
|
-
{ legacy: ["storage", "files", "upload"], replacement: "ornn volumes files upload" },
|
|
7202
|
-
{ legacy: ["storage", "files", "download"], replacement: "ornn volumes files download" },
|
|
7203
|
-
{ legacy: ["storage", "files", "delete"], replacement: "ornn volumes files delete" },
|
|
7204
|
-
{ legacy: ["storage", "buckets", "list"], replacement: "ornn external-buckets list" },
|
|
7205
|
-
{ legacy: ["storage", "buckets", "show"], replacement: "ornn external-buckets show" },
|
|
7206
|
-
{ legacy: ["storage", "buckets", "connect"], replacement: "ornn external-buckets connect" },
|
|
7207
|
-
{
|
|
7208
|
-
legacy: ["storage", "buckets", "update-credentials"],
|
|
7209
|
-
replacement: "ornn external-buckets update-credentials"
|
|
7210
|
-
},
|
|
7211
|
-
{ legacy: ["storage", "buckets", "verify"], replacement: "ornn external-buckets verify" },
|
|
7212
|
-
{ legacy: ["storage", "buckets", "import"], replacement: "ornn external-buckets import" },
|
|
7213
|
-
{
|
|
7214
|
-
legacy: ["storage", "buckets", "disconnect"],
|
|
7215
|
-
replacement: "ornn external-buckets disconnect"
|
|
7216
|
-
},
|
|
7217
|
-
{ legacy: ["storage", "buckets", "create"], replacement: "ornn external-buckets connect" },
|
|
7218
|
-
{ legacy: ["storage", "buckets", "delete"], replacement: "ornn external-buckets disconnect" },
|
|
7219
|
-
{ legacy: ["storage", "volumes"], replacement: "ornn volumes list" },
|
|
7220
|
-
{ legacy: ["storage", "files"], replacement: "ornn volumes files list" },
|
|
7221
|
-
{ legacy: ["storage", "buckets"], replacement: "ornn external-buckets list" },
|
|
7222
|
-
{ legacy: ["storage", "targets"], replacement: "ornn volume-mounts candidates" },
|
|
7223
|
-
{ legacy: ["storage", "deploy"], replacement: "ornn volume-mounts attach" },
|
|
7224
|
-
{ legacy: ["storage", "status"], replacement: "ornn volume-mounts show" },
|
|
7225
|
-
{ legacy: ["storage", "detach"], replacement: "ornn volume-mounts detach" },
|
|
7226
|
-
{
|
|
7227
|
-
legacy: ["billing", "summary"],
|
|
7228
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7229
|
-
},
|
|
7230
|
-
{
|
|
7231
|
-
legacy: ["billing", "invoices"],
|
|
7232
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7233
|
-
},
|
|
7234
|
-
{
|
|
7235
|
-
legacy: ["billing", "showback"],
|
|
7236
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7237
|
-
},
|
|
7238
|
-
{
|
|
7239
|
-
legacy: ["billing", "open"],
|
|
7240
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7241
|
-
},
|
|
7242
|
-
{
|
|
7243
|
-
legacy: ["billing"],
|
|
7244
|
-
replacement: "ornn capacity-offers list (use the Ornn web app for commercial workflows)"
|
|
7245
|
-
},
|
|
7246
|
-
{ legacy: ["reservations", "commerce", "list"], replacement: "ornn reservations list" },
|
|
7247
|
-
{ legacy: ["reservations", "commerce", "create"], replacement: "ornn admin reservations create" },
|
|
7248
|
-
{ legacy: ["operator", "list"], replacement: "ornn admin suppliers list" },
|
|
7249
|
-
{ legacy: ["operators", "list"], replacement: "ornn admin suppliers list" },
|
|
7250
|
-
{ legacy: ["facilities", "list"], replacement: "ornn admin facilities list" },
|
|
7251
|
-
{ legacy: ["tokens", "list"], replacement: "ornn admin enrollment-tokens list" },
|
|
7252
|
-
{ legacy: ["tokens", "create"], replacement: "ornn admin enrollment-tokens create" },
|
|
7253
|
-
{ legacy: ["tokens", "revoke"], replacement: "ornn admin enrollment-tokens revoke" },
|
|
7254
|
-
{ legacy: ["node", "enroll"], replacement: "ornn admin nodes enroll" },
|
|
7255
|
-
{ legacy: ["node", "list"], replacement: "ornn admin nodes list" },
|
|
7256
|
-
{ legacy: ["node", "health"], replacement: "ornn admin nodes health" },
|
|
7257
|
-
{ legacy: ["node", "reboot"], replacement: "ornn admin nodes reboot" },
|
|
7258
|
-
{ legacy: ["node", "admin-key"], replacement: "ornn admin nodes export-key" },
|
|
7259
|
-
{ legacy: ["node", "diagnose"], replacement: "ornn admin nodes diagnose" },
|
|
7260
|
-
{ legacy: ["node", "exec"], replacement: "ornn admin nodes exec" },
|
|
7261
|
-
{ legacy: ["node", "hard-reset"], replacement: "ornn admin nodes hard-reset --erase-local-data" },
|
|
7262
|
-
{ legacy: ["node", "terminate"], replacement: "ornn admin nodes terminate" },
|
|
7263
|
-
{ legacy: ["node", "off-grid"], replacement: "ornn admin nodes list --status ghost" },
|
|
7264
|
-
{ legacy: ["node", "on-grid"], replacement: "ornn admin nodes list --status ghost" },
|
|
7265
|
-
{ legacy: ["operator"], replacement: "ornn admin suppliers list" },
|
|
7266
|
-
{ legacy: ["operators"], replacement: "ornn admin suppliers list" },
|
|
7267
|
-
{ legacy: ["facilities"], replacement: "ornn admin facilities list" },
|
|
7268
|
-
{ legacy: ["tokens"], replacement: "ornn admin enrollment-tokens list" },
|
|
7269
|
-
{ legacy: ["users"], replacement: "ornn admin users list" },
|
|
7270
|
-
{ legacy: ["node"], replacement: "ornn admin nodes list" },
|
|
7271
|
-
{ legacy: ["cache", "purge"], replacement: "ornn resources" },
|
|
7272
|
-
{ legacy: ["api"], replacement: "ornn resources" },
|
|
7273
|
-
{ legacy: ["commerce"], replacement: "ornn resources" },
|
|
7274
|
-
{ legacy: ["orchestrator"], replacement: "ornn resources" }
|
|
7275
|
-
];
|
|
7276
|
-
function findLegacyCliMigration(argv) {
|
|
7277
|
-
return [...LEGACY_CLI_MIGRATIONS].sort((left, right) => right.legacy.length - left.legacy.length).find((entry) => entry.legacy.every((part, index) => argv[index] === part)) ?? null;
|
|
7278
|
-
}
|
|
7279
|
-
|
|
7280
7024
|
// ../../packages/capabilities/dist/ssh-access.js
|
|
7281
7025
|
function sshArguments({ host, username, port, gatewayId, gateway }) {
|
|
7282
7026
|
if (!host || !username || !Number.isInteger(port) || port < 1 || port > 65535)
|
|
@@ -7302,8 +7046,6 @@ function shellArgument(value) {
|
|
|
7302
7046
|
}
|
|
7303
7047
|
export {
|
|
7304
7048
|
ADMIN_CLI_ROOTS,
|
|
7305
|
-
CLI_MIGRATION_GUIDE_URL,
|
|
7306
|
-
LEGACY_CLI_MIGRATIONS,
|
|
7307
7049
|
accessActivateCapability,
|
|
7308
7050
|
accessShowCapability,
|
|
7309
7051
|
bucketConnectCapability,
|
|
@@ -7320,7 +7062,6 @@ export {
|
|
|
7320
7062
|
clusterRemoveNodeCapability,
|
|
7321
7063
|
clusterShowCapability,
|
|
7322
7064
|
clusterTeardownCapability,
|
|
7323
|
-
findLegacyCliMigration,
|
|
7324
7065
|
gpuDisplay,
|
|
7325
7066
|
isCustomerSensitiveField,
|
|
7326
7067
|
machineRebootCapability,
|