Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0582bb1
Add fab find command for catalog search API
Feb 8, 2026
c72b18c
feat(find): address feedback - nargs+, remove endpoint, add error han…
Feb 10, 2026
6b8c5f1
feat(find): add tab-completion for --type flag
Feb 10, 2026
d2cac8c
feat(find): add --limit validation (1-1000)
Feb 10, 2026
b732c0b
feat(find): use custom validation for cleaner error messages
Feb 10, 2026
fb3871b
fix(find): fix API integration issues
Feb 10, 2026
30e34a5
fix(find): correct print_output_format call for table display
Feb 10, 2026
56f8a6b
feat(find): add key-value layout for --detailed flag
Feb 10, 2026
7c231bc
refactor(find): change --detailed to -l/--long to match CLI convention
Feb 10, 2026
fb64188
feat(find): hide empty keys in long output
Feb 10, 2026
30507c7
refactor(find): reorder long output fields (name, id, type, workspace…
Feb 10, 2026
a7e1f90
feat(find): add blank line separator before results
Feb 10, 2026
16941b7
feat(find): add blank line before count message
Feb 10, 2026
7f3bdb3
feat(find): add --continue flag for pagination
Feb 10, 2026
5fa2c6b
fix(find): fix --continue to not duplicate search/filter params
Feb 10, 2026
d45eb13
refactor(find): rename flags to --max-items and --next-token
Feb 10, 2026
6dca122
feat(find): hide description column when all descriptions are empty
Feb 11, 2026
f68abf3
fix(find): remove Scorecard from unsupported types (returned as Report)
Feb 11, 2026
d55a386
fix(find): remove Dataflow from unsupported types (Gen2 CI/CD is sear…
Feb 11, 2026
eb0bd4e
docs(find): clarify Dataflow Gen1/Gen2 are not searchable
Feb 11, 2026
c7d2c55
docs(find): add 'currently' to Dataflow note
Feb 11, 2026
1f8a80e
refactor(find): replace --next-token/--type/--max-items with auto-pag…
Feb 24, 2026
3c60e96
test(find): update tests for pagination and -P params refactor
Feb 24, 2026
88cf988
fix(find): make -P type filter case-insensitive
Mar 3, 2026
e050589
fix(find): treat empty continuation token as end of results
Mar 3, 2026
458137f
fix(find): truncate descriptions to fit terminal width
Mar 3, 2026
c143d16
feat(find): paginate all results in command-line mode
Mar 3, 2026
320bfc6
fix(find): improve error messages per Microsoft Writing Style Guide
Mar 4, 2026
42b7432
Delete issue-172.md
nadavs123 Mar 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/added-20260209-171617.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: added
body: Add new 'fab find' command for searching the Fabric catalog across workspaces
time: 2026-02-09T17:16:17.2056327+02:00
custom:
Author: nschachter
AuthorLink: https://github.com/nschachter
47 changes: 47 additions & 0 deletions src/fabric_cli/client/fab_api_catalog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

"""Catalog API client for searching Fabric items across workspaces.

API Reference: POST https://api.fabric.microsoft.com/v1/catalog/search
Required Scope: Catalog.Read.All
"""

from argparse import Namespace

from fabric_cli.client import fab_api_client as fabric_api
from fabric_cli.client.fab_api_types import ApiResponse


def catalog_search(args: Namespace, payload: dict) -> ApiResponse:
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit - since we are in catalog_api consider rename to search(args: Namespace, payload: dict)

"""Search the Fabric catalog for items.

https://learn.microsoft.com/en-us/rest/api/fabric/core/catalog/search

Args:
args: Namespace with request configuration
payload: Dict with search request body:
- search (required): Text to search across displayName, description, workspaceName
- pageSize: Number of results per page
- continuationToken: Token for pagination
- filter: OData filter string, e.g., "Type eq 'Report' or Type eq 'Lakehouse'"

Returns:
ApiResponse with search results containing:
- value: List of ItemCatalogEntry objects
- continuationToken: Token for next page (if more results exist)

Note:
The following item types are NOT searchable via this API:
Dashboard

Note: Dataflow Gen1 and Gen2 are currently not searchable; only Dataflow Gen2
CI/CD items are returned (as type 'Dataflow').
Scorecards are returned as type 'Report'.
"""
args.uri = "catalog/search"
args.method = "post"
# Use raw_response to avoid auto-pagination (we handle pagination in display)
args.raw_response = True
return fabric_api.do_request(args, json=payload)

2 changes: 2 additions & 0 deletions src/fabric_cli/commands/find/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) Microsoft Corporation.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add documentation for this new command - under docs folder.
here you can find the guidelines how to rebuild it locally

# Licensed under the MIT License.
Loading