mdedit-cli 0.2.2 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,6 +18,19 @@ All APIs require authentication. Create an API key here:
18
18
 
19
19
  - [API key docs](https://docs.mdedit.ai/api-keys)
20
20
 
21
+ Interactive browser OAuth is also available in explicitly enabled cohorts. It
22
+ uses authorization code + PKCE, a fixed loopback callback, and the operating
23
+ system credential manager:
24
+
25
+ ```bash
26
+ mdedit auth login
27
+ mdedit auth status
28
+ mdedit auth logout
29
+ ```
30
+
31
+ Headless and CI environments should continue to use scoped API keys. Browser
32
+ OAuth remains release-gated and `--no-browser` is not a device flow.
33
+
21
34
  ## Configure
22
35
 
23
36
  ```bash
@@ -55,6 +68,32 @@ quote, heading, section, or range anchors. The command exits `2` when an anchor
55
68
  `3` when an anchor is ambiguous, and `4` when an edit conflict is reported. In JSON mode,
56
69
  the result or typed error is the only value written to stdout.
57
70
 
71
+ ## Public links
72
+
73
+ Use a key with `publishing:write` to publish or update a public snapshot. Publishing is
74
+ explicit: later edits stay private until the command is run again.
75
+
76
+ ```bash
77
+ mdedit article publish <articleId> --yes
78
+ mdedit article publish <articleId> --slug my-document --yes
79
+ mdedit article publish-status <articleId> --format json
80
+ mdedit article unpublish <articleId> --yes
81
+ ```
82
+
83
+ Create a document from Markdown and publish it in one command:
84
+
85
+ ```bash
86
+ mdedit article create \
87
+ --file document.md \
88
+ --publish \
89
+ --yes
90
+ ```
91
+
92
+ Without `--title`, the CLI uses the first Markdown H1 or the filename.
93
+ The JSON result includes `publication.shortUrl`, such as
94
+ `https://mded.it/my-document`. If article creation succeeds but publishing fails, the
95
+ article is kept private and the command reports its article ID.
96
+
58
97
  ## Review commands
59
98
 
60
99
  Review agents can comment and suggest with `articles:read,reviews:write`; accepting a