yarn npm stage approve — Yarn CLI reference

Approve staged package versions for publishing.

Docs/Reference/CLI/npm/stage/approve

yarn npm stage approve

Approve staged package versions for publishing.

yarn npm stage approve <STAGE_ID> <ADDITIONAL_STAGE_IDS…>

This command approves one or more staged package versions on the active workspace’s publish registry. Pass multiple stage IDs to approve them in order. All IDs are validated before any requests are sent. If an approval fails, the command stops; earlier successful approvals remain published. If the registry requires two-factor authentication, use --otp or enter the code when prompted.

#--otpboolean

One-time password to use when the registry requires two-factor authentication

Examples#

Approve a staged package

yarn npm stage approve 1de6f3db-2ed9-4d72-b3dd-8f0e2b474a2f

Approve two staged packages using a one-time password

yarn npm stage approve 1de6f3db-2ed9-4d72-b3dd-8f0e2b474a2f 2c7f4e1a-3b8d-4e5f-9a6b-7c8d9e0f1a2b --otp 123456