@openbsp/cli 0.1.0 → 0.2.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 +9 -1
- package/openbsp.mjs +69 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ scripts, and any agent with a shell.
|
|
|
7
7
|
```bash
|
|
8
8
|
npx @openbsp/cli login # or: npm install -g @openbsp/cli
|
|
9
9
|
openbsp inbox # what people wrote since the last check
|
|
10
|
-
openbsp reply <conversation> "
|
|
10
|
+
openbsp reply <conversation> "Yes, we have one left."
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Signing in
|
|
@@ -31,6 +31,7 @@ organization rather than as a member.
|
|
|
31
31
|
| `openbsp inbox [--since 2h]` | What people wrote since the last check |
|
|
32
32
|
| `openbsp inbox <conversation>` | One conversation, opened |
|
|
33
33
|
| `openbsp reply <conversation> [text]` | Send a text; without one, it reads stdin |
|
|
34
|
+
| `openbsp publish <account> <media> [caption]` | Publish a post on Instagram or TikTok: a file or a URL |
|
|
34
35
|
| `openbsp api [method] <path> [-d json] [-H ..]` | Call the API: `/rest/v1/…` (PostgREST) or `/functions/v1/…` |
|
|
35
36
|
| `openbsp docs` | The API reference |
|
|
36
37
|
|
|
@@ -39,6 +40,13 @@ next plain `openbsp inbox` still has everything new. `--reply-to <message>`
|
|
|
39
40
|
answers a given message: a thread on Slack, a quote elsewhere, a public answer
|
|
40
41
|
to an Instagram or TikTok comment.
|
|
41
42
|
|
|
43
|
+
`publish` posts an image (JPEG) as a feed post or a video as a reel on
|
|
44
|
+
Instagram, where `--story` makes either a story, and a video or a JPEG or WebP
|
|
45
|
+
photo on TikTok; and `--at 2026-12-01T15:00:00Z` schedules it. It prints the
|
|
46
|
+
publication's id: deleting that conversation
|
|
47
|
+
(`openbsp api DELETE "/rest/v1/conversations?id=eq.<id>"`) cancels a post not
|
|
48
|
+
published yet.
|
|
49
|
+
|
|
42
50
|
`api` prints the response as JSON and exits 1 on an error status, with the error
|
|
43
51
|
on stderr. `-d` takes JSON, `@file` or `-` (stdin):
|
|
44
52
|
|