Skip to content

brew home --casks or brew home --leaves #5982

Discussion options

You must be logged in to vote

JSON output is your friend, and there's a whole page with explanations and examples.

For your specific use case, extracting the desired information for casks in TSV (tab-separated values) format is as simple as:

brew info --json=v2 $(brew ls --cask) | jq -r '.casks[] | [.token, .homepage] | @tsv'

and for leaves:

brew info --json=v2 $(brew leaves) | jq -r '.formulae[] | [.full_name, .homepage] | @tsv' 

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@insasquatchcountry
Comment options

@insasquatchcountry
Comment options

Answer selected by insasquatchcountry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants