Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
fa94a1d
feat: add yaml and zod dependencies for apply command
nurikk Mar 15, 2026
03ae8cb
feat: add TypeScript types for declarative config and action plan
nurikk Mar 15, 2026
5cfd5cc
feat: add Zod validation schema for dokploy.yaml with tests
nurikk Mar 15, 2026
b428b5d
feat: add YAML parser with validation for dokploy.yaml
nurikk Mar 15, 2026
9720b07
feat: add typed API client wrappers for all resource tRPC endpoints
nurikk Mar 15, 2026
49dab1f
feat: add differ to compare YAML config vs remote state
nurikk Mar 15, 2026
54349b9
feat: add reporter for formatting apply plan and results
nurikk Mar 15, 2026
a0cb6a0
feat: add executor to run create/update actions via API
nurikk Mar 15, 2026
ecc1cc7
feat: add reconciler to orchestrate parse, diff, and execute flow
nurikk Mar 15, 2026
88934a4
feat: add 'apply' oclif command for declarative config
nurikk Mar 15, 2026
643ebc7
docs: add example dokploy.yaml for apply command
nurikk Mar 15, 2026
69c9c27
docs: add apply command documentation to README
nurikk Mar 15, 2026
352568e
feat: add exporter to generate dokploy.yaml from server state
nurikk Mar 16, 2026
e5a5629
feat: add 'export' oclif command to generate dokploy.yaml from server
nurikk Mar 16, 2026
c3d06d4
test: add unit tests for export cleanResource logic
nurikk Mar 16, 2026
2a12b2a
fix: resolve API compatibility issues found during E2E testing
nurikk Mar 16, 2026
b63406a
fix: add _resolvedServerId to IGNORED_FIELDS in differ
nurikk Mar 16, 2026
b249be9
fix: address multiple issues found in code review
nurikk Mar 16, 2026
b6f1e91
refactor: promote api-client to shared utility at src/utils/api.ts
nurikk Mar 16, 2026
be34738
refactor: migrate all commands from raw axios to shared api client
nurikk Mar 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions examples/dokploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Example dokploy.yaml — declarative infrastructure config
# Docs: https://github.com/Dokploy/dokploy/issues/3872
#
# Usage:
# dokploy apply -f dokploy.yaml # Apply changes
# dokploy apply -f dokploy.yaml --dry-run # Preview changes
# dokploy apply -f dokploy.yaml --verbose # Detailed output
#
# Env vars are managed separately:
# dokploy env push -f .env # Push env vars to a service

apiVersion: v1
kind: Project
name: my-project
description: "My application stack"

environments:
- name: production
description: "Production environment"

applications:
- name: web-api
sourceType: github
buildType: dockerfile
repository: my-org/api
owner: my-org
branch: main
dockerfile: Dockerfile
replicas: 1
autoDeploy: true

domains:
- host: api.example.com
port: 3000
https: true
certificateType: letsencrypt

mounts:
- type: volume
mountPath: /app/data
volumeName: api-data

postgres:
- name: main-db
dockerImage: postgres:16
databaseName: myapp
databaseUser: admin
databasePassword: change-me-in-production
externalPort: 5432

redis:
- name: cache
dockerImage: redis:7
databasePassword: change-me-in-production
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
"description": "A CLI to manage dokploy server remotely",
"version": "v0.2.8",
"author": "Mauricio Siu",
"licenses": [{
"type": "MIT",
"url": "https://github.com/Dokploy/cli/blob/master/LICENSE"
}],
"licenses": [
{
"type": "MIT",
"url": "https://github.com/Dokploy/cli/blob/master/LICENSE"
}
],
"publishConfig": {
"access": "public"
},
Expand All @@ -23,7 +25,9 @@
"cli-table3": "^0.6.5",
"inquirer": "^9.2.23",
"slugify": "^1.6.6",
"superjson": "^2.2.1"
"superjson": "^2.2.1",
"yaml": "^2.8.2",
"zod": "^4.3.6"
},
"devDependencies": {
"@oclif/prettier-config": "^0.2.1",
Expand Down Expand Up @@ -82,7 +86,7 @@
"prepack": "oclif manifest && oclif readme",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif readme && git add README.md",
"publish" :"npm publish"
"publish": "npm publish"
},
"types": "dist/index.d.ts"
}
Loading