Skip to content

CLI: adds unpublish command to remove a package from registry

prometheansacrifice requested to merge prometheansacrifice@cli-unpublish into dev

Motivation and Context

We want users to be able to remove a package or it's version from the registry. We dont have a way to do that right now.

Description

This MR adds a unpublish command to the CLI that works very similar to the NPM unpublish command.

Component

  • compiler
  • website
  • webide
  • vscode-plugin
  • debugger

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Performance improvement (non-breaking change that improves performance)
  • None (change with no changelog)

Changelog

  • Group publish, login and add-user commands under a ligo registry subcommand.
  • Add ligo registry unpublish command to remove a package or a specific version of it from the registry

Summary

  [--package-name Name]      . of the package on which publish/unpublish is
                               executed
  [--package-version Version]
                             . of the package on which publish/unpublish is
                               executed

To unpublish a package, run ligo registry unpublish --package-name <name> --package-version <version> from anywhere on the CLI (not necessarily from within a project)

Examples,

ligo registry unpublish --package-name foo --package-version 1.0.0

--package-version is optional, omitting which the entire package is unpublished.

Checklist:

  • Documentation has been updated.
Edited by prometheansacrifice

Merge request reports