Skip to main content

add-domain

Add a custom domain to a Dokploy application Arguments: <domain> --app <app-name-or-id> [--port <port>] [--https].

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
add-domain
description
Add a custom domain to a Dokploy application Arguments: <domain> --app <app-name-or-id> [--port <port>] [--https].
# Add Domain Follow the `mcp-patterns` skill (`${CLAUDE_PLUGIN_ROOT}/skills/mcp-patterns/SKILL.md`) for the domain-create parameters and the domain usage notes; read it before the first call. Add a custom domain to a Dokploy application with optional HTTPS. ## Arguments Format: `<domain> --app <app-name-or-id> [--port <port>] [--https]` - domain: Domain name, e.g. app.example.com (required) - --app: Application name or ID (required) - --port: Application port (default: 3000) - --https: Enable HTTPS with Let's Encrypt certificate (optional flag) Parse from "$ARGUMENTS". ## Process 1. **Resolve application** — if --app is a name, resolve via `project-all` and `project-one`. 1b. **DNS record (optional, v0.30+).** `domain-create` does not create the DNS record. If `dnsProvider-all` lists a provider whose zone (`dnsProvider-listZones`, `dnsProvider-listRecords`) covers the domain and no A/CNAME record exists yet, offer to create it — with explicit user confirmation, because it changes real DNS: `dnsProvider-createRecord { dnsProviderId, zoneId, type: "A", name: "<host>", content: "<server public IP>" }` (server IP from `server-publicIp` or `settings-getIp`). If that tool is not in your session (some MCP clients drop `dnsProvider-createRecord`), use the REST endpoint `POST /api/dnsProvider.createRecord` with the same body. No provider configured? Skip this step and tell the user to add the record at their DNS host. 2. **Create domain** using MCP tool `domain-create` with: - `host`: the domain name - `applicationId`: resolved application ID - `port`: specified port or 3000 - `path`: `/` - `https`: true if --https flag provided 3. **Validate domain** using MCP tool `domain-validateDomain { domain: "<host>", serverId? }` — pass the **hostname string** (NOT the domainId) to check DNS resolution; add `serverId` when the application runs on a remote server so the check uses that server's IPs. 4. **Display result:** Show domain, port, HTTPS status, and validation result. If DNS not resolving, remind user to add an A record pointing to the server IP. To take a domain out of service later without deleting it, use `domain-toggleEnable { domainId }` (v0.30+) — it flips `enabled`; certificate, path and middleware settings are kept. Applications change instantly; compose domains change on the next deploy. ## Example Usage ``` /dokploy-dev:add-domain app.example.com --app web-frontend --https /dokploy-dev:add-domain api.example.com --app api-server --port 8000 --https /dokploy-dev:add-domain staging.example.com --app web-frontend --port 3000 ```
View on GitHub