{"id":14064063,"url":"https://github.com/ethanbergstrom/Cobalt","last_synced_at":"2025-07-29T17:31:48.214Z","repository":{"id":40349448,"uuid":"430491776","full_name":"ethanbergstrom/Cobalt","owner":"ethanbergstrom","description":"A PowerShell Crescendo wrapper for WinGet","archived":false,"fork":false,"pushed_at":"2023-02-05T17:02:15.000Z","size":40,"stargazers_count":39,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-22T22:35:35.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethanbergstrom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-21T22:07:12.000Z","updated_at":"2024-08-13T07:06:08.319Z","dependencies_parsed_at":"2023-02-16T00:31:31.882Z","dependency_job_id":null,"html_url":"https://github.com/ethanbergstrom/Cobalt","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanbergstrom%2FCobalt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanbergstrom%2FCobalt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanbergstrom%2FCobalt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanbergstrom%2FCobalt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethanbergstrom","download_url":"https://codeload.github.com/ethanbergstrom/Cobalt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228032923,"owners_count":17858917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:03:39.553Z","updated_at":"2024-12-04T02:31:05.739Z","avatar_url":"https://github.com/ethanbergstrom.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"[![CI](https://github.com/ethanbergstrom/Cobalt/actions/workflows/CI.yml/badge.svg)](https://github.com/ethanbergstrom/Cobalt/actions/workflows/CI.yml)\n\n# Cobalt\nCobalt is a simple PowerShell Crescendo wrapper for WinGet\n\n## Requirements\nIn addition to PowerShell 5.1+ and an Internet connection on a Windows machine, WinGet must also be installed. Microsoft recommends installing WinGet from the Windows Store as part of the [App Installer](https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1?activetab=pivot:overviewtab) package.\n\n## Install Cobalt\n```PowerShell\nInstall-Module Cobalt -Force\n```\n\n## Sample usages\n### Search for a package\n```PowerShell\nFind-WinGetPackage -ID openJS.nodejs\n\nFind-WinGetPackage -ID Mozilla.Firefox -Exact\n```\n\n### Get a package's detailed information from the repository\n```PowerShell\nGet-WinGetPackageInfo -ID CPUID.CPU-Z -Version 1.95\n\nFind-WinGetPackage -ID Mozilla.Firefox -Exact | Get-WinGetPackageInfo\n```\n\n### Get all available versions of a package\n```PowerShell\nGet-WinGetPackageInfo -ID CPUID.CPU-Z -Versions\n\nFind-WinGetPackage -ID Mozilla.Firefox -Exact | Get-WinGetPackageInfo -Versions\n```\n\n### Install a package\n```PowerShell\nFind-WinGetPackage OpenJS.NodeJS -Exact | Install-WinGetPackage\n\nInstall-WinGetPackage 7zip.7zip\n```\n\n### Install a list of packages\n```PowerShell\n@('CPUID.CPU-Z','7zip.7zip') | ForEach-Object { Install-WinGetPackage $_ }\n```\n\n### Install a specific version of a package\n```PowerShell\nInstall-WinGetPackage CPUID.CPU-Z -Version 1.95\n```\n\n### Install multiple packages with specific versions\n```PowerShell\n@(\n    @{\n        id = 'CPUID.CPU-Z'\n        version = '1.95'\n    },\n    @{\n        id = 'putty.putty'\n        version = '0.74'\n    }\n) | Install-WinGetPackage\n```\n\n### Get list of installed packages\n```PowerShell\nGet-WinGetPackage nodejs\n```\n\n### Get list of installed packages that can be upgraded\n```PowerShell\nGet-WinGetPackageUpdate\n```\n\n### Upgrade a package\n```PowerShell\nUpdate-WinGetPackage CPUID.CPU-Z\n```\n\n### Upgrade a list of packages\n```PowerShell\n@('CPUID.CPU-Z','7zip.7zip') | ForEach-Object { Update-WinGetPackage -ID $_ }\n```\n\n### Upgrade all packages\n\u003e :warning: **Use at your own risk!** WinGet will try to upgrade all layered software it finds, may not always succeed, and may upgrade software you don't want upgraded.\n```PowerShell\nUpdate-WinGetPackage -All\n```\n\n### Uninstall a package\n```PowerShell\nGet-WinGetPackage nodejs | Uninstall-WinGetPackage\n\nUninstall-WinGetPackage 7zip.7zip\n```\n\n### Manage package sources\n```PowerShell\nRegister-WinGetSource privateRepo -Argument 'https://somewhere/out/there/api/v2/'\nFind-WinGetPackage nodejs -Source privateRepo -Exact | Install-WinGetPackage\nUnregister-WinGetSource privateRepo\n```\n\nCobalt integrates with WinGet.exe to manage and store source information\n\n## Known Issues\n### Stability\nWinGet's behavior and APIs are still very unstable. Do not be surprised if this module stops working with newer versions of WinGet.\n\n### Retrieving package upgrade list hangs on first use\nDue to [a bug](https://github.com/microsoft/winget-cli/issues/1869) that [is resolved](https://github.com/microsoft/winget-cli/pull/1874) in WinGet v1.3 preview releases, if `Get-WinGetPackageUpdate` is ran with WinGet v1.2.x or below without having first accepted source license agreements, the cmdlet will hang indefinitely due to source agreements not having been accepted.\n\nAvailable workarounds include:\n* Running another cmdlet that invokes correctly-behaving WinGet behavior (ex: `Get-WinGetPackage`)\n* Manually accepting the source agreement via the WinGet CLI\n\nAfter WinGet v1.3 is generally available with the bug fixed, a new version of this module will be released to resolve this issue.\n\n## Legal and Licensing\nCobalt is licensed under the [MIT license](./LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethanbergstrom%2FCobalt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethanbergstrom%2FCobalt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethanbergstrom%2FCobalt/lists"}