@plenary/cli 0.3.0 → 0.4.0
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 +7 -2
- package/dist/index.js +438 -55
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -23,11 +23,16 @@ plenary entries export post > posts.ndjson
|
|
|
23
23
|
plenary media upload hero.jpg
|
|
24
24
|
plenary forms entries export contact > contact.ndjson
|
|
25
25
|
plenary api GET models
|
|
26
|
+
|
|
27
|
+
plenary login # a user session, for admin work
|
|
28
|
+
plenary api-keys create --name Deploy --grant content:models:update
|
|
29
|
+
plenary roles list
|
|
26
30
|
```
|
|
27
31
|
|
|
28
32
|
Configuration comes from flags, `PLENARY_*` variables, a `.env`, then
|
|
29
|
-
`plenary.json`. The credential is an API key
|
|
30
|
-
|
|
33
|
+
`plenary.json`. The credential is an API key (content work, CI) or a
|
|
34
|
+
stored user session from `plenary login` (admin work); a key wins for
|
|
35
|
+
content commands when both exist. `--json` on any command prints the API's JSON; exit 1 is an
|
|
31
36
|
API error, 2 a usage error.
|
|
32
37
|
|
|
33
38
|
Full reference: `docs/CLI.md` in the Plenary repository.
|