CLI tool to package, upload, and sign Firefox extensions via the AMO (addons.mozilla.org) API.
Given an unpacked extension directory, amo-sign will:
- Read the addon ID and version from
manifest.json - Check if the version already exists on AMO (and skip to signing if so)
- Package the directory into a ZIP (excluding
.git) - Upload and validate the ZIP via the AMO upload API
- Create or update the addon with the new version
- Poll until signing completes and download the signed
.xpi
amo-sign <extension-dir> [-o signed.xpi]
Requires AMO_API_KEY and AMO_API_SECRET environment variables
(generate these at https://addons.mozilla.org/developers/addon/api/key/).