Skip to content

feat: add --feature_flags argument to deploy command - #89

Open
ayeshurun wants to merge 2 commits into
mainfrom
dev/alonyeshurun/deploy-feature-flags-via-params
Open

feat: add --feature_flags argument to deploy command#89
ayeshurun wants to merge 2 commits into
mainfrom
dev/alonyeshurun/deploy-feature-flags-via-params

Conversation

@ayeshurun

@ayeshurun ayeshurun commented Jul 16, 2026

Copy link
Copy Markdown
Owner

📥 Pull Request

✨ Description of new changes

Summary: Adds a --feature_flags argument to fab deploy that enables fabric-cicd feature flags via a single comma-separated value:

fab deploy --config config.yml --target_env dev --feature_flags enable_shortcut_publish,enable_bulk_publish

This replaces the never-released --bulk_publish flag (microsoft#260) with a general-purpose mechanism, so the CLI surface stays stable as fabric-cicd adds new flags.

Context:

  • Format: one comma-separated value; space-separated lists are rejected to keep input unambiguous. Surrounding brackets and whitespace are tolerated.
  • Validation: flag names are validated against the fabric-cicd FeatureFlag enum; unknown names raise ERROR_INVALID_INPUT listing the valid flags.
  • Always-on flags: enable_experimental_features (gate for experimental flags) and disable_print_identity (keeps identity info out of logs) are always enabled, and skipped if the user passes them explicitly.

Also removes the obsolete --bulk_publish code, docs, tests, and changie entry, and updates docs plus unit and e2e tests. mypy is clean; all deploy tests pass.

Dependencies: None.

Alon Yeshurun and others added 2 commits July 16, 2026 09:12
Replaces the unreleased --bulk_publish flag with a general
--feature_flags argument that enables arbitrary fabric-cicd feature
flags via a single comma-separated value. Flag names are validated
against fabric-cicd's supported feature flag list (falling back to the
FeatureFlag enum on older releases). enable_experimental_features and
disable_print_identity are always enabled by the CLI and skipped if the
user passes them explicitly.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c5eedf4e-9a35-4fab-8788-7b793f4fd160
Drops the get_supported_feature_flags() import with ImportError fallback
in favor of deriving VALID_FEATURE_FLAGS directly from the fabric-cicd
FeatureFlag enum.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c5eedf4e-9a35-4fab-8788-7b793f4fd160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant