From b8399a84266131fdc2a3fe755244fd119cf9dac7 Mon Sep 17 00:00:00 2001 From: Ayush7614 Date: Thu, 30 Jul 2026 19:53:28 +0530 Subject: [PATCH 1/3] fix: add builds abort, runs status filter, and dataset command bugs Add builds abort parity with runs, --status on runs ls, correct dataset info messaging/pricing, richer get-items export options, and rename help text fixes. --- docs/reference.md | 65 ++++++++--- scripts/generate-cli-docs.ts | 1 + src/commands/builds/_index.ts | 4 +- src/commands/builds/abort.ts | 85 +++++++++++++++ src/commands/builds/log.ts | 13 ++- src/commands/builds/ls.ts | 2 +- src/commands/datasets/get-items.ts | 108 +++++++++++-------- src/commands/datasets/info.ts | 4 +- src/commands/datasets/rename.ts | 2 +- src/commands/key-value-stores/rename.ts | 2 +- src/commands/runs/ls.ts | 28 ++++- test/e2e/commands/builds/lifecycle.test.ts | 23 +++- test/e2e/commands/datasets/lifecycle.test.ts | 26 +++++ test/e2e/commands/runs/lifecycle.test.ts | 14 +++ test/local/storage-size.test.ts | 26 +++++ 15 files changed, 335 insertions(+), 68 deletions(-) create mode 100644 src/commands/builds/abort.ts create mode 100644 test/local/storage-size.test.ts diff --git a/docs/reference.md b/docs/reference.md index 09af9be11..358abf5b8 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -885,9 +885,11 @@ Use these commands to manage Actor build processes. They help you create, monito ```sh DESCRIPTION - Create, inspect, tag, and delete Actor builds on the Apify platform. + Create, inspect, abort, tag, and delete Actor builds on the Apify platform. SUBCOMMANDS + builds abort Aborts an Actor build that is currently in + progress. builds add-tag Adds a tag to a specific Actor build. builds remove-tag Removes a tag from a specific Actor build. builds rm Permanently removes an Actor build from @@ -900,6 +902,22 @@ SUBCOMMANDS terminal status (SUCCEEDED, FAILED, ABORTED, TIMED-OUT). ``` +##### `apify builds abort` + +```sh +DESCRIPTION + Aborts an Actor build that is currently in progress. + +USAGE + $ apify builds abort [--json] + +ARGUMENTS + buildId The build ID to abort. + +FLAGS + --json Format the command output as JSON. +``` + ##### `apify builds add-tag` ```sh @@ -981,7 +999,7 @@ USAGE [--limit ] [--offset ] ARGUMENTS - actorId Optional Actor ID or Name to list runs for. By default, it + actorId Optional Actor ID or Name to list builds for. By default, it will use the Actor from the current directory. FLAGS @@ -1136,17 +1154,23 @@ DESCRIPTION USAGE $ apify runs ls [actorId] [-c] [--desc] [--json] [--limit ] [--offset ] + [--status + READY|RUNNING|SUCCEEDED|FAILED|TIMING-OUT|TIMED-OUT|ABORTING|ABORTED] ARGUMENTS actorId Optional Actor ID or Name to list runs for. By default, it will use the Actor from the current directory. FLAGS - -c, --compact Display a compact table. - --desc Sort runs in descending order. - --json Format the command output as JSON. - --limit= Number of runs that will be listed. - --offset= Number of runs that will be skipped. + -c, --compact Display a compact table. + --desc Sort runs in descending order. + --json Format the command output as JSON. + --limit= Number of runs that will be listed. + --offset= Number of runs that will be skipped. + --status=