Password Protection

Set Password

Your dbdocs project is set to be public by default. However, you can follow the following command to protect it with a password.

$ dbdocs password --set <password> --project <project name>
✔ Password is set for <project name>

Or

$ dbdocs password --project <project name>
? Enter password: [hidden]
? Re-enter password: [hidden]
✔ Password is set for <project name>

Or you can build your project with password by using build command with --password

$ dbdocs build <path to your dbml file>/database.dbml --password <password>
Pushing new database schema to project your_project...
✔ Password is set for 'Ecommerce'
Done. Visit: https://dbdocs.io/khanh-tran-quoc/Ecommerce

Now your project is protected, only the one who have your password can access your project.

Remove Password

Remove password from your project to make it public

$ dbdocs password --remove --project <project name>
⚠ Password is removed from 'Ecommerce'
© 2023 Holistics Software. All rights reserved.