VS Code Extension

Updated Jun 19, 2026
DataMagik Application Designer

VS Code Extension

DataMagik App Tools (datamagik-app-tools) is a thin VS Code layer over the dm CLI. It lets you author DataMagik scripts, SQL queries, and SPA apps locally and act against the platform without leaving your editor. Every action shells the dm CLI, so behavior matches the terminal exactly.

What it adds

  • CodeLens on @dm-script .js files (▶ Run, ⬆ Commit, ✎ Push meta, ≡ Status) and @dm-sql .sql files (▶ Run, ⬆ Push).
  • Command palette (category DataMagik): Run / Commit / Push / Status, Pull scripts & SQL, Generate Types, Add Resource, Start SPA Dev Server, Log in / Switch Tenant.
  • Tenant status bar — shows the platform you are logged into; click to log in or switch.
  • Output channel ("DataMagik") that streams dm output for read-only actions; interactive ones (add, dev) open the integrated terminal.

Requirements

  • @datamagik/cli available as npx dm (installed by dm init) or globally — or set datamagik.cliCommand to your dm invocation.
  • Log in once (status bar → log in) to store credentials for the tenant.

Settings

  • datamagik.cliCommand (default npx dm) — how the extension invokes the CLI.

Because the extension is a wrapper, everything in Installing & Using the CLI applies — the editor just gives you buttons for it.

Was this page helpful?