<- All updates
Hosting
Deployment password protection and disabling
Protect deployments with a shared password or disable access across deployment and custom domains.
- Released
- Area
- Hosting
Configure access when publishing with flat deploy PATH --password SECRET or flat deploy PATH --disabled. These options work for anonymous and permanent deployments across deployment and custom domains.
Use flat deployment update ID to change an existing deployment:
--password SECRETsets or replaces the password.--remove-passwordremoves password protection.--disableblocks access without expiring the deployment.--enablerestores access.
Disabling takes precedence over password protection and does not remove the password. Access changes may take up to 60 seconds to reach serving domains.
API clients can set password and disabled when creating a deployment, or update them through PATCH /deployment/{id}. Deployment responses expose password_protected and disabled, and flat deployment list now displays both states.