You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(site): document --include-disabled flag for secrets commands
Add the --include-disabled flag (introduced in #914) to the CLI
reference for secrets set, list, and delete. Also expand the
project-scope discovery section to explain the new default pruning
behaviour and when to use the opt-out flag.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
-`--all-repos` -- **project-scope mode**: search every ado-aw definition in the ADO project, not just those with a local lock file; mutually exclusive with `--definition-ids`
85
85
-`--source <path>` -- filter to definitions whose `# ado-aw-metadata` marker references this template path (e.g. `agents/security-scan.md`); activates the discovery code path; pairs with `--all-repos` to scope across the whole project
86
+
-`--include-disabled` -- include `disabled` / `paused` definitions in project-wide discovery (only effective with `--all-repos` or `--source`); by default disabled and paused definitions are skipped to speed up the Preview step
86
87
-`--dry-run` -- print the planned set without calling the ADO API
87
88
88
89
### `secrets list [path]`
@@ -94,6 +95,7 @@ Options:
94
95
-`--json` -- emit machine-readable JSON
95
96
-`--org`, `--project`, `--pat`, `--definition-ids` -- same as `secrets set`
96
97
-`--all-repos`, `--source` -- same as `secrets set`
98
+
-`--include-disabled` -- same as `secrets set`
97
99
98
100
### `secrets delete <name> [path]`
99
101
@@ -103,6 +105,7 @@ Options:
103
105
104
106
-`--org`, `--project`, `--pat`, `--definition-ids` -- same as `secrets set`
105
107
-`--all-repos`, `--source` -- same as `secrets set`
108
+
-`--include-disabled` -- same as `secrets set`
106
109
-`--dry-run` -- print the planned deletion without calling the ADO API
@@ -114,6 +117,8 @@ By default, `secrets` commands match ADO definitions by scanning **local lock fi
114
117
115
118
Both flags are mutually exclusive with `--definition-ids`. `--definition-ids` remains the explicit-ID escape hatch when you know exactly which definitions to target.
116
119
120
+
**Disabled and paused definitions** are pruned by default during project-wide discovery: the Preview step is expensive, so `disabled` / `paused` definitions are skipped before the expansion call to keep large projects fast. Definitions with no reported status are treated as active. Pass **`--include-disabled`** to include them — useful when you need to rotate a token on a pipeline that is temporarily paused.
121
+
117
122
:::caution[Not available for other lifecycle commands]
118
123
`enable`, `disable`, `remove`, `list`, `status`, and `run` are **not** affected by these flags — they retain their local-fixture-scoped safety semantics. Only `secrets` commands support project-scope discovery because token rotation is the primary use case for cross-repo operations.
0 commit comments