The modvc command is not found
Check whether the global npm binary directory is included in yourPATH. The CLI help suggests adding the npm prefixbin directory:
export PATH=$(npm config get prefix)/bin:$PATHA command returns unauthorized
The API rejects missing, expired, or revoked tokens. Check the credential source order:--token, MODVC_TOKEN, then the saved token. Create a replacement token if the current one is expired or revoked.
modvc login --token mvc_your_token_hereBrowser login does not start
Check that the terminal displayed a confirmation code and verification URL, then open the URL manually if it did not open a browser. The CLI handles the service's slower poll interval. If you deny the request or it expires, the terminal stops polling immediately; start a new login request to try again.
A custom API host is refused
The CLI restricts API hosts to modcloud hosts unless--allow-custom-host is provided. It also requires HTTPS except for localhost. Only use the override for a host you trust, because a request may include the configured token.
modvc apps --api-url https://api.example.test --allow-custom-host