Add `Unpublish-PSResource` command to unlist/hide module versions programmatically
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Comece lendo os caminhos de comando existentes de Publish-PSResource e Find-PSResource e, em seguida, inspecione o comportamento de unlisting e de permissões da PowerShell Gallery API. O trabalho estará concluído quando Unpublish-PSResource puder direcionar versões estáveis ou prerelease específicas, aceitar uma chave de API e processar entradas de pipeline para vários recursos.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary of the new feature / enhancement
As a PowerShell user automating module publishing workflows, I want a command to quickly unlist or hide specific versions of a module (such as prereleases after the full version is published), so that I can ensure only relevant versions are visible on the PowerShell Gallery without manual UI steps.
Currently, unlist functionality exists in the PowerShell Gallery UI and is also supported via API key permissions, but there is no native PowerShell command to do this in automation scenarios. This limits streamlined management when transitioning from prerelease to stable versions or when hiding obsolete/pre-release versions is required within CI/CD systems.
Proposed technical implementation details (optional)
Add a new cmdlet named Unpublish-PSResource. It should accept similar parameters as Find-PSResource, with the addition of -ApiKey (similar to Publish-PSResource). This command would use the API key (with appropriate unlist permission) to programmatically unlist or hide the specified package version on the Gallery.
The command should support:
- Specifying a specific version (including prerelease versions) to unlist
- Pipeline input from
Find-PSResourceto unpublish multiple resources at once
Example usage:
Unpublish-PSResource -Repository PSGallery -ApiKey $APIKey -Name $moduleName -Version 2.0.1 -Prerelease
# Unpublish multiple versions via pipeline
Find-PSResource -Name $moduleName -Version "2.0.1" -Prerelease | Unpublish-PSResource -Repository PSGallery -ApiKey $APIKey
This feature would greatly improve automation workflows for module publishers and mirror the manual UI and API support for unlisting that already exists.
- Linguagem predominante
- C#
- Estrelas
- 578
- Forks
- 114
- Merge médio
- 10h 4min
- PRs com merge (30d)
- 4
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
PowerShell/PSResourceGet#2056 ·
-
feature_request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
PowerShell/PSResourceGet#2013 · 3 comentários ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
PowerShell/PSResourceGet#2063 · 5 comentários ·
-
PSResourceGet 1.3.0-preview2 error when installing AZ ModuleTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. AbertaNeeds-Triage
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
PowerShell/PSResourceGet#2061 · 1 comentário · 1 responsável ·
-
Needs-Triage
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
PowerShell/PSResourceGet#2060 · 1 comentário ·
Todas as issues de PowerShell/PSResourceGet
Issues semelhantes
-
python triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
microsoft/semantic-kernel#14615 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
vzeol/DeployCraft#125 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
fboucher/2d6-dungeon-app#245 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area: settings good first issue priority: p2 type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
AmineChr54/umbra#3 ·
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia