Skip to content

Conversation

@l2ysho
Copy link
Contributor

@l2ysho l2ysho commented Jan 23, 2026

Adds two new CLI commands for managing Actor build tags:

New Commands

apify builds add-tag - Adds a tag to a specific Actor build

USAGE
  $ apify builds add-tag -b <value> -t <value>

FLAGS
  -b, --build=<value>  The build ID to tag.
  -t, --tag=<value>    The tag to add to the build.

apify builds remove-tag - Removes a tag from a specific Actor build

USAGE
  $ apify builds remove-tag -b <value> -t <value> [-y]

FLAGS
  -b, --build=<value>  The build ID to remove the tag from.
  -t, --tag=<value>    The tag to remove from the build.
  -y, --yes            Automatic yes to prompts; assume "yes" as answer to all prompts.

Features

  • Validates build exists and has SUCCEEDED status before tagging
  • Shows informative message when reassigning an existing tag to a different build
  • Confirmation prompt before removing a tag (can be skipped with --yes flag)
  • Clear error messages for invalid operations

Example Usage

# Add a "beta" tag to a build
apify builds add-tag -b abc123 -t beta

# Remove a tag from a build
apify builds remove-tag -b abc123 -t beta --yes

Changes

  • src/commands/builds/add-tag.ts - New command
  • src/commands/builds/remove-tag.ts - New command
  • src/commands/builds/_index.ts - Register new subcommands
  • test/api/commands/builds/tags.test.ts - API tests

Closes #997

@l2ysho l2ysho linked an issue Jan 23, 2026 that may be closed by this pull request
Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great past these small things! Also, should we consider an apify actors add-tag/remove-tag at the actor level (so smth like apify actors add-tag <actor id> <build id> <tag>?

@github-actions github-actions bot added this to the 133rd sprint - Tooling team milestone Jan 27, 2026
@github-actions github-actions bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Jan 27, 2026
@l2ysho l2ysho marked this pull request as ready for review January 27, 2026 14:21
@l2ysho l2ysho requested a review from TC-MO as a code owner January 27, 2026 14:21
@l2ysho l2ysho merged commit 082f981 into master Jan 27, 2026
22 checks passed
@l2ysho l2ysho deleted the 997-add-command-to-enable-setting-build-tags branch January 27, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add command to enable setting build tags

4 participants