trainfabric 0.1.56 → 0.1.57
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/dist/index.cjs +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9364,7 +9364,7 @@ function buildComputeSpec(options) {
|
|
|
9364
9364
|
|
|
9365
9365
|
// src/index.ts
|
|
9366
9366
|
var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
|
|
9367
|
-
var CLI_VERSION = "0.1.
|
|
9367
|
+
var CLI_VERSION = "0.1.57";
|
|
9368
9368
|
var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
|
|
9369
9369
|
var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
|
|
9370
9370
|
var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
|
|
@@ -10248,7 +10248,7 @@ program2.command("datasets:delete").argument("<datasetId>").description("Delete
|
|
|
10248
10248
|
await client.datasets.delete(normalizedDatasetId);
|
|
10249
10249
|
printJson({ deleted: true, id: normalizedDatasetId });
|
|
10250
10250
|
});
|
|
10251
|
-
program2.command("datasets:upload").argument("<file>").option("--project <projectId>").option("--name <name>").description("Upload a dataset through upload sessions").action(async (file, options) => {
|
|
10251
|
+
program2.command("datasets:upload").argument("<file>").option("--json", "print raw JSON output; this is the default").option("--project <projectId>").option("--name <name>").description("Upload a dataset through upload sessions").action(async (file, options) => {
|
|
10252
10252
|
assertReadableFile(file, "Dataset path");
|
|
10253
10253
|
const config = loadConfig();
|
|
10254
10254
|
const projectId = normalizeOptionalId(options.project ?? config.projectId, "project", "Project ID");
|
|
@@ -10387,7 +10387,7 @@ program2.command("cluster:pools").option("--json", "print raw JSON output; this
|
|
|
10387
10387
|
program2.command("models:list").option("--json", "print raw JSON output; this is the default").description("List exported models").action(async () => {
|
|
10388
10388
|
printJson(await createClient(loadConfig()).models.list());
|
|
10389
10389
|
});
|
|
10390
|
-
program2.command("models:export").argument("<modelId>").description("Fetch the export package path for a model").action(async (modelId) => {
|
|
10390
|
+
program2.command("models:export").argument("<modelId>").option("--json", "print raw JSON output; this is the default").description("Fetch the export package path for a model").action(async (modelId) => {
|
|
10391
10391
|
printJson(await createClient(loadConfig()).models.export(normalizeId(modelId, "model", "Model ID")));
|
|
10392
10392
|
});
|
|
10393
10393
|
program2.command("deployments:list").option("--json", "print raw JSON output; this is the default").description("List deployments").action(async () => {
|
|
@@ -10408,7 +10408,7 @@ program2.command("deployments:create").requiredOption("--model <modelId>").optio
|
|
|
10408
10408
|
process.exitCode = 1;
|
|
10409
10409
|
}
|
|
10410
10410
|
});
|
|
10411
|
-
program2.command("deployments:get").argument("<deploymentId>").description("Fetch a deployment").action(async (deploymentId) => {
|
|
10411
|
+
program2.command("deployments:get").argument("<deploymentId>").option("--json", "print raw JSON output; this is the default").description("Fetch a deployment").action(async (deploymentId) => {
|
|
10412
10412
|
printJson(await createClient(loadConfig()).deployments.get(normalizeId(deploymentId, "deployment", "Deployment ID")));
|
|
10413
10413
|
});
|
|
10414
10414
|
program2.command("deployments:delete").argument("<deploymentId>").description("Delete a pending or cataloged deployment").action(async (deploymentId) => {
|