paysum --version to check that it is available.
The CLI is not available from the public npm registry. If you do not have a copy, use the dashboard theme editor or the Theme API.
Connect a store
In Integrations → API keys, create a key. Give itstore:read and themes:write to develop and publish themes. For read-only work, use store:read and themes:read. Copy the key when the dashboard shows it.
~/.config/paysum/credentials.json by default (%APPDATA%\paysum\credentials.json on Windows). If you sign in to more than one store, the CLI selects the key for the current theme folder.
For commands other than login, set PAYSUM_API_KEY to use that key without saving it. See CI and automation.