Skip to content

Add support for filtering data using JMESPath #1315

@waldekmastykarz

Description

@waldekmastykarz

Add support for filtering data returned by commands using JMESPath. That way, users can filter the returned data set and work only with the relevant subset without having to use third party tools such as jq. This is similar to what's available in the Azure CLI.

For example:

Retrieve all site collections with /sites/team- in their URL

o365 spo site list --query '[?contains(url, `/sites/team-`)]' --output json

Working PoC is available at https://github.com/waldekmastykarz/office365-cli/tree/jmes-query

Related: #102

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions