Command Reference

Syntax

Purpose

Requirements/side effects

/knowledge or /knowledge help

Show help

None

/knowledge connect

Start GitHub OAuth

Delegated/hybrid OAuth configuration; stores encrypted user tokens

/knowledge status

Show GitHub binding

Authorization service configured

/knowledge disconnect

Revoke binding

Attempts GitHub token revocation and marks/removes local authorization

/knowledge confluence-connect

Open PAT modal

Interactivity and TOKEN_ENCRYPTION_KEY

/knowledge draft <links…​> [options]

Generate a pending preview

Valid thread URLs; does not publish

/knowledge create-pr <links…​> [options]

Legacy alias through the same draft/approval flow

Does not bypass approval

/knowledge approve <draft-id>

Publish owned pending draft

Creator only; writes selected destination

/knowledge edit <draft-id>

Direct user to preview Edit button

Creator only; modal requires a button trigger

/knowledge cancel <draft-id>

Cancel owned pending draft

No destination write

Draft options are --repo owner/repo, --path docs-relative-path, --jira, --jira-project VALUE, --jira-issue-type VALUE, --confluence, --confluence-space SPACE, and --confluence-parent PAGE_ID. Values with spaces must be quoted. Unknown flags and missing values are rejected. --confluence and --jira are mutually exclusive. See Create a draft.