Authentication and tokens
ploy login
ploy login opens Ploy in your browser and stores CLI credentials after sign-in. If your account uses enhanced security, complete MFA in the browser.
ploy loginLogging in again stores the new credential first, then attempts to revoke the previous one. --dry-run is not supported.
ploy whoami
Confirm the account attached to the current credential. The command prints the authenticated email, optional name, and user ID.
ploy whoamiploy logout
Logout revokes the current server-side CLI credential and removes local credentials. Saved workspace and site selections remain in place.
ploy logout
ploy --dry-run logoutIf the current credential already fails with 401, 403, or 404, the CLI still clears it locally.
List active CLI credentials
ploy tokens lists up to 100 active CLI refresh credentials for the current user and marks the credential in use by this CLI.
ploy tokensRevoke a credential
ploy token revoke <target> accepts a credential ID, an exact credential name, or the special target current. If an exact name matches more than one credential, Ploy returns a conflict instead of guessing.
ploy token revoke current
ploy token revoke <token-id>
ploy --dry-run token revoke <token-id>Revoking the current credential also removes it from local config.
Authentication failures
Commands return exit code 3 when authentication is required or credentials have expired. Run ploy login again, then retry the original command.
Keep going
- Check the complete CLI contract for global options, environment variables, saved state, and exit codes.
- Manage workspaces and sites, including site creation, status, publishing, and Code Sync.
- Equip agents with Ploy skills and inspect a site's design-system context.
