Skip to content

Add agent config and external site CLI commands#942

Merged
chubes4 merged 1 commit intomainfrom
feature/agent-config-external-cli
Mar 22, 2026
Merged

Add agent config and external site CLI commands#942
chubes4 merged 1 commit intomainfrom
feature/agent-config-external-cli

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 22, 2026

Summary

Two new CLI command groups for agent management and cross-site authentication.

wp datamachine agents config

Read and update agent configuration without touching the database directly.

wp datamachine external

Manage connections to other Data Machine instances — the receiving side of the authorize flow.

Testing

All commands tested live on production — config read/set/unset, external add/list/show/remove/test all working.

wp datamachine agents config <slug> — read/update agent_config JSON
  --set='key=value' for setting keys (JSON-parsed values)
  --unset=key for removing keys
  --set='site_scope=7' for updating the site_scope column directly

wp datamachine external — manage connections to other DM instances
  add <site> <slug> --token=... [--verify] — register external token
  list — show all external connections
  show <key> [--show-token] — connection details
  remove <key> — delete a connection
  test <key> — verify connectivity and auth against remote site
@chubes4 chubes4 merged commit ac9c539 into main Mar 22, 2026
1 check failed
@chubes4 chubes4 deleted the feature/agent-config-external-cli branch March 22, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant