adtk search
The search command group provides text search across code repositories, work items, WIQL queries, and saved queries.
Shared Flags
Section titled “Shared Flags”| Flag | Short | Default | Description |
|---|---|---|---|
--project | -p | Project name (optional, scopes the search) | |
--top | 25 | Max results to return |
Search code across all repositories in the organization or project.
adtk search code <query> [--project myproject] [--top 25]Example:
adtk search code "func handleAuth" -p MyProjectFILE PATH REPOSITORY PROJECTauth.go /src/handlers/auth.go backend-api MyProjectmiddleware.go /src/middleware/middleware.go backend-api MyProject
2 resultswork-items
Section titled “work-items”Search work items by text across all fields.
adtk search work-items <query> [--project myproject] [--top 25]Example:
adtk search work-items "login redirect bug" -p MyProjectID TYPE TITLE STATE PROJECT42 Bug Fix login page redirect Active MyProject78 Task Investigate redirect loop on login Closed MyProject
2 resultsExecute a WIQL (Work Item Query Language) query directly.
adtk search wiql <query> [--project myproject] [--top 25]Example:
adtk search wiql "SELECT [System.Id], [System.Title], [System.State] FROM WorkItems WHERE [System.State] = 'Active' AND [System.WorkItemType] = 'Bug' ORDER BY [System.ChangedDate] DESC" -p MyProject --top 10ID TYPE TITLE STATE42 Bug Fix login page redirect Active67 Bug Memory leak in background worker Active
2 work itemsRun a saved query by its ID or path. Returns work items matching the saved query definition.
adtk search query <id-or-path> [--project myproject] [--top 25]Example:
adtk search query "My Saved Queries/Active Bugs" -p MyProjectID TYPE TITLE STATE42 Bug Fix login page redirect Active67 Bug Memory leak in background worker Active
2 work items