Skip to main content

create-db

Create and deploy a database in a Dokploy project Arguments: <name> --project <project> --type <postgres|mysql|mariadb|mongo|redis|libsql> [--password <pass>].

Source facts

Repository
Agents-Store/codex-plugins
Last source activity
November 1, 2026 at 02:46
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
create-db
description
Create and deploy a database in a Dokploy project Arguments: <name> --project <project> --type <postgres|mysql|mariadb|mongo|redis|libsql> [--password <pass>].
# Create Database Follow the `mcp-patterns` skill (`${CLAUDE_PLUGIN_ROOT}/skills/mcp-patterns/SKILL.md`) for the database tool pattern and usage notes; read it before the first call. Create and deploy a database instance in a Dokploy project. ## Arguments Format: `<name> --project <project> --type <postgres|mysql|mariadb|mongo|redis|libsql> [--password <pass>]` - name: Database name (required) - --project: Project name or ID (required) - --type: Database type — postgres, mysql, mariadb, mongo, redis, libsql (required) - --password: Database password (generated if omitted — the API requires one) Parse from "$ARGUMENTS". ## Process 1. **Resolve project** (same as create-app command), then **resolve the target environment**: `project-one { projectId }` → `environments[]` (default `production`); or `environment-byProjectId { projectId }`. If several, ask the user. 2. **Create database** using the type-specific MCP tool: - postgres: `postgres-create` - mysql: `mysql-create` - mariadb: `mariadb-create` - mongo: `mongo-create` - redis: `redis-create` - libsql: `libsql-create` Pass `name`, `environmentId` (NOT projectId), plus the per-type REQUIRED fields: - postgres/mysql/mariadb: `databaseName`, `databaseUser`, `databasePassword` - mongo: `databaseUser`, `databasePassword` - redis: `databasePassword` - libsql: `databaseUser`, `databasePassword`, plus its extra required fields (`sqldNode`, `enableNamespaces`, …) — see `libsql-create` in the full index for defaults 3. **Deploy database** using `{type}-deploy` with the created database ID. 4. **Display result:** Show database ID, name, type, status. Include internal connection details (host, port, credentials) and suggest using `{type}-saveExternalPort` if external access is needed. ## Example Usage ``` /dokploy-dev:create-db "main-db" --project my-saas --type postgres /dokploy-dev:create-db "cache" --project my-saas --type redis /dokploy-dev:create-db "analytics" --project data --type mongo --password "secure123" ```
View on GitHub