CLI
Authenticate CLI app management
Protected app commands need a developer key in the environment.
1 min read · 141 words
Protected app commands need a developer key in the environment. The CLI is provided in the Merchant Bridge source repository as scripts/merchantbridge-cli.mjs. It uses Node.js built-in APIs. Run it from the project folder; on Windows PowerShell, npm.cmd can be used if execution policy blocks npm.ps1. Never put API secrets directly in command arguments.
On this page
What to expect
The CLI is provided in the Merchant Bridge source repository as scripts/merchantbridge-cli.mjs. It uses Node.js built-in APIs. Run it from the project folder; on Windows PowerShell, npm.cmd can be used if execution policy blocks npm.ps1. Never put API secrets directly in command arguments.
Protected app commands need a developer key in the environment. This guide covers 3 practical actions, in the order they usually happen.
Do this first
Set MERCHANTBRIDGE_API_KEY through your trusted shell or secret manager..
Run npm run merchantbridge -- apps list with an apps:read key..
Then finish with
Remove temporary credentials from the shell when finished..
Good to know
Everything here reflects the current Merchant Bridge interface. Labels and buttons may move as the product evolves, but the flow stays the same: prepare, act on the page this guide references, and confirm the result before moving on.
When something does not match what you see, the destination page for this guide is the source of truth.
Need help with a specific error? Contact Merchant Bridge with the page and visible error, without passwords or secret keys.