Giter VIP home page Giter VIP logo

psresourceget's Introduction

AnyPackage.PSResourceGet

gallery-image build-image cf-image

AnyPackage.PSResourceGet is an AnyPackage provider that facilitates installing PSResourceGet resources from NuGet repositories.

Documentation

AnyPackage.PSResourceGet documentation is located in Provider Catalog on how to use the provider and what dynamic parameters exist.

Install AnyPackage.PSResourceGet

Install-Module AnyPackage.PSResourceGet

Import AnyPackage.PSResourceGet

Import-Module AnyPackage.PSResourceGet

Sample usages

Search for a package

Find-Package -Name PSReadLine

Find-Package -Name PS*

Install a package

Find-Package Scoop | Install-Package

Install-Package -Name Scoop

Get list of installed packages

Get-Package -Name Scoop

Uninstall a package

Get-Package -Name 7zip | Uninstall-Package

Uninstall-Package -Name 7zip

Update a package

Get-Package -Name 7zip | Update-Package

Uninstall-Package

Saving a package

Find-Package -Name PSReadLine | Save-Package

Save-Package -Name PSReadLine -Path C:\Temp

Publishing a package

Publish-Package -Path C:\Temp\module\module.psd1

Manage official package sources

Register-PackageSource -Provider PSResourceGet -PSGallery
Find-Package -Name Scoop | Install-Package
Unregister-PackageSource -Name PSGallery

Manage unofficial package sources

Register-PackageSource -Name Test -Location C:\Temp\repo
Find-Package -Name Scoop -Source Test | Install-Package
Unregister-PackageSource -Name Test

Known Issues

Missing PSResourceGet parameters

There are a few missing dynamic parameters:

  • Save-Package -AsNupkg
  • Save-Package -IncludeXml
  • Install-Package -NoClobbler

psresourceget's People

Contributors

thomasnieto avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

thomasnieto

psresourceget's Issues

Install-Package writes error on non-existent package

No error should be written by the provider when a package is not found.

Add -ErrorAction Ignore to Find-PSResource calls.

Install-Package -Name Docker.DockerDesktop -PassThru -Verbose
VERBOSE: Performing the operation "Install-Package" on target "Docker.DockerDesktop".
VERBOSE: Installing 'Docker.DockerDesktop' package.
VERBOSE: Calling 'PowerShellGet' provider.
Install-Package: Package 'Docker.DockerDesktop' with requested version range '(, )' could not be found in any trusted repositories

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.