Skip to content

Open project DB from the terminal / DDEV (e.g. ddev tablepro) #1486

@datlechin

Description

@datlechin

Problem

Coming from TablePlus, I'm used to typing ddev tableplus to open a DDEV project's database without re-entering connection details. There's no equivalent for TablePro: DDEV ships built-in launchers for TablePlus, Sequel Ace, and a few others, but not TablePro, so there's no first-class "open this project's DB in TablePro from the terminal" path.

Proposed solution

A first-class CLI / DDEV integration so ddev tablepro (or a documented terminal command) opens the project database in TablePro.

TablePro already registers as a URL handler for the standard schemes (mysql://, postgresql://, etc.), so open "mysql://user:pass@127.0.0.1:PORT/db" works today. What's missing is the official, documented path:

  • An official DDEV custom host command (.ddev/commands/host/tablepro) we publish and document, so users can drop it in and run ddev tablepro.
  • Docs section showing how to open TablePro from the terminal / DDEV, including forcing TablePro over TablePlus when both are installed (open -b com.TablePro "mysql://...").
  • Stretch: get a ddev tablepro launcher contributed upstream to DDEV so it works out of the box.

Alternatives considered

  • Manual open "mysql://..." from the shell: works but undiscoverable, and routes to whichever app is the default mysql:// handler (TablePlus wins if both are installed).
  • Hand-writing a DDEV custom command: works, but every user has to figure it out themselves. Documenting/shipping it removes the guesswork.

Related database type

N/A / General

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions