Skip to content

Add .dokploy.json local project config to skip interactive prompts #25

@megamattron

Description

@megamattron

Currently every command requires either passing --projectId/--environmentId/--applicationId flags or going through interactive selection each time. It would be useful to have a per-directory config file that stores these defaults.

Proposed feature

A .dokploy.json file that can be placed in any project directory:

{
  "projectId": "abc123",
  "environmentId": "def456",
  "applicationId": "ghi789"
}

A new dokploy init command to create it interactively, and all existing commands would read this file (walking up parent directories) to fill in missing flags before prompting.

Example usage

$ cd ~/my-app
$ dokploy init              # select project/environment/app once
$ dokploy app deploy -y     # no prompts needed
$ dokploy env pull .env     # knows which project/environment to use

CLI flags would always take priority over .dokploy.json values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions