Skip to content

ethanbergstrom/Croze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

Croze

Croze is a simple PowerShell Crescendo wrapper for Homebrew

Requirements

In addition to PowerShell 7+ and an Internet connection on a Windows machine, Homebrew must also be installed.

Install Croze

Install-Module Croze -Force

Sample usages

Search for a package

Find-HomebrewPackage -Name jq -Formula

Find-HomebrewPackage -Name firefox -Cask

Get a package's detailed information from the repository

Get-HomebrewPackageInfo -Name jq

Find-HomebrewPackage -Name firefox -Cask | Get-HomebrewPackageInfo

Get all available versions of a package

Get-HomebrewPackageInfo -Name jq

Find-HomebrewPackage -Name firefox -Cask | Get-HomebrewPackageInfo

Install a package

Find-HomebrewPackage -Name jq -Formula | Install-HomebrewPackage

Install-HomebrewPackage -Name jq -Formula

Get list of installed packages

Get-HomebrewPackage -Formula
Get-HomebrewPackage -Name firefox -Cask

Upgrade a package

Update-HomebrewPackage -Name jq -Formula
Update-HomebrewPackage -Name firefox -Cask

Upgrade all packages

⚠️ Use at your own risk! Homebrew will try to upgrade all layered software it finds, may not always succeed, may upgrade software you don't want upgraded, and may prompt for a password.

Update-HomebrewPackage -Formula
Update-HomebrewPackage -Cask

Uninstall a package

Get-HomebrewPackage -Formula jq | Uninstall-HomebrewPackage

Uninstall-HomebrewPackage -Name firefox -Cask

Manage package sources

Register-HomebrewTap pyroscope-io/brew
Get-HomebrewTap | Get-HomebrewTapInfo | Select-Object Name, Official, Remote
Find-HomebrewPackage -Name pyroscope-io/brew/pyroscope -Formula | Install-HomebrewPackage
Unregister-HomebrewTap pyroscope-io/brew

Legal and Licensing

Croze is licensed under the MIT license.