Search code examples
firefox-addonfirefox-addon-webextensionsweb-ext

Environment variables for web-ext


I'm using web-ext by mozilla to submit an extension to firefox addon store. The --help says this:

  --api-key            API key (JWT issuer) from addons.mozilla.org
                                                             [string] [required]
  --api-secret         API secret (JWT secret) from addons.mozilla.org
                                                             [string] [required]

Is there a way to use environment variables to set the values on my CI/CD environment?

API_KEY and API_SECRET give me Missing required arguments: api-key, api-secret


Solution

  • Indeed there is, but it's poorly documented.

    WEB_EXT_API_KEY=your key
    WEB_EXT_API_SECRET=your secret