@verdaccio/yarn-plugin-npm-unpublish
v0.0.2
Published
Yarn 4 plugin that adds the yarn npm unpublish command
Keywords
Readme
@verdaccio/yarn-plugin-npm-unpublish
Yarn 4 plugin that adds the yarn npm unpublish command to remove packages or specific versions from npm registries.
Installation
yarn dlx @verdaccio/yarn-import npm-unpublishOr from a local build:
yarn plugin import ./packages/plugin-npm-unpublish/bundles/@yarnpkg/plugin-npm-unpublish.jsUsage
# Unpublish a specific version
yarn npm unpublish [email protected]
# Unpublish a scoped package version
yarn npm unpublish @my-scope/[email protected]
# Unpublish all versions (requires --force)
yarn npm unpublish my-package --force
# With OTP for two-factor authentication
yarn npm unpublish [email protected] --otp 123456
# Against a specific registry
yarn npm unpublish [email protected] --registry http://localhost:4873Options
| Option | Description |
|---|---|
| --force | Required when unpublishing all versions of a package |
| --otp <code> | One-time password for two-factor authentication |
| --registry <url> | Override the registry URL |
| --scope <scope> | Use the registry configured for the given scope |
| --json | Format the output as NDJSON |
Positional arguments
| Argument | Description |
|---|---|
| package | Package name with optional version (e.g. [email protected]). Without @<version>, --force is required. |
License
MIT
