Skip to content

Releases: draftmark-app/cli

v0.2.1

30 Mar 05:54

Choose a tag to compare

Fix

Account key resolution for private doc creationdm login --api-key acct_... was being shadowed by doc-level keys (key_...) from .draftmark.json. Now create --private correctly prefers account keys from global config over doc keys from local config.

dm config now shows Account API Key and Doc API Key separately.

v0.2.0

27 Mar 07:25

Choose a tag to compare

What's new

New commands

  • dm update — Push content revisions from file or stdin
  • dm react — Add emoji reactions to documents
  • dm list — Show all documents in .draftmark.json
  • dm browse — Open document in the default browser
  • dm config — Show resolved configuration from all sources
  • dm login / logout / whoami — Global credential management (~/.config/draftmark/config.json)

Agent DX

  • --agent flag on create — marks doc as agent-authored, auto-inherited by comment and review
  • --meta <json> — pass arbitrary JSON metadata on create
  • Stdin supportecho "# Hello" | dm create - and dm update -
  • Structured JSON errors — all failures return { error, code, details }
  • -q / --quiet — suppress stderr for clean piping
  • --format table|json|minimal on status and comments
  • --since <date> — filter comments by date

Fixes & improvements

  • create now accepts --api-key (required for --private, optional for public)
  • Private doc creation shows the full ?token= URL
  • All commands resolve credentials from: flag → env → .draftmark.json → global config
  • --base-url global option to override API endpoint
  • Standardized exit codes: 0 ok, 1 error, 2 auth, 3 not found, 4 conflict

v0.1.0

22 Mar 18:22

Choose a tag to compare

Initial release of the Draftmark CLI.

Commands: create, status, comments, comment, review, raw, close, open, delete

npm install -g draftmark
dm --help