Create & Link
Create databases and link them to your apps.
Create a Database
Section titled “Create a Database”Go to Resources → New Database. Select the engine, name it, and choose a server.
wokku addons:create postgres my-db --server my-servercurl -X POST https://wokku.cloud/api/v1/databases \ -H "Authorization: Bearer $TOKEN" \ -d '{"service_type": "postgres", "name": "my-db", "server_id": 1}'Ask Claude: “Create a PostgreSQL database called my-db on server 1”
Tap Resources → + → select engine → name it → create.
Link to an App
Section titled “Link to an App”Linking injects the connection URL as an environment variable and restarts the app.
Go to the database detail page → Link → select the app.
wokku addons:add my-app postgres --name my-dbcurl -X POST https://wokku.cloud/api/v1/databases/DB_ID/link \ -H "Authorization: Bearer $TOKEN" \ -d '{"app_id": "my-app"}'Ask Claude: “Link my-db database to my-app”
Tap the database → Link → select app.
Unlink
Section titled “Unlink”Removes the connection URL from the app and restarts it.
Go to the database → Unlink next to the linked app.
wokku addons:remove my-app my-dbcurl -X POST https://wokku.cloud/api/v1/databases/DB_ID/unlink \ -H "Authorization: Bearer $TOKEN" \ -d '{"app_id": "my-app"}'Ask Claude: “Unlink my-db from my-app”
Tap the database → swipe on the linked app to unlink.