The same organization identity
Use the email and password for an admitted organization member. Sign-in resolves active membership and current authorities. A revoked grant or suspended organization is checked again by the API on subsequent requests.
This client does not implement MFA, API-key issuance or an organization picker. Its session has the account’s ordinary organization permissions. The CLI command list is not a separate server-enforced client scope.
One saved session, one exact API origin
Login requires an explicit API origin, with no credentials, path, query or fragment in the URL. HTTPS is required except for localhost, 127.0.0.1 or ::1 development connections. Redirects are never followed.
A later --api-url must match the saved origin exactly. Changing from localhost to an IP address, changing ports, or selecting another deployment requires a separate login. Use a separate PERDURA_CLI_HOME directory when you need to retain sessions for different deployments.
node perdura-cli.mjs whoami --api-url http://127.0.0.1:3101A private local credential file
The token is written atomically to session.json under PERDURA_CLI_HOME, or XDG_CONFIG_HOME/perdura, or ~/.config/perdura. On POSIX systems the directory must be private and the token file is created with mode 0600. The client refuses to store credentials inside a Git checkout.
This is a local file protected by your operating-system account, not an encrypted keychain. Keep it out of shared folders, backups you do not control and source repositories. Windows users should keep the directory restricted to their account. Tokens and passwords are never printed by the client.
Expiry, lockout and recovery
API sessions expire; the service currently defaults to twelve hours unless configured otherwise. A 401 response means you must sign in again. The API also applies sign-in rate limits and durable failed-password lockout.
Password recovery in this build records a request but does not deliver a recovery email. Contact Perdura for access help. The CLI cannot replace a password or bypass admission.
Revoke this session
Logout asks the API to revoke the saved session and removes the local file. If the server cannot confirm revocation, the file is still removed and the client exits with code 4. This does not claim to revoke every session on other devices.
node perdura-cli.mjs logout