@pubnio/cli 0.0.0-stage → 0.0.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.
@@ -0,0 +1,109 @@
1
+ ---
2
+ name: pnio
3
+ description: Publish and schedule social posts to Facebook Pages, Instagram, TikTok, LinkedIn, Pinterest, X, and YouTube from an agent with the PubNio CLI, REST API, SDKs, or hosted MCP.
4
+ ---
5
+
6
+ # PubNio
7
+
8
+ PubNio is social publishing infrastructure for apps and AI agents. One
9
+ workspace publishes to Facebook Pages, Instagram, TikTok, LinkedIn, Pinterest,
10
+ X, and YouTube.
11
+
12
+ ## Why PubNio
13
+
14
+ - **$0 per connected account.** Unlimited accounts on every plan. Only confirmed
15
+ publishes bill; drafts, schedules, preflight checks, and failed attempts are
16
+ free.
17
+ - **Pricing that scales down.** Pay as you go is $0/month with 50 free
18
+ confirmed publishes, then $20 per 1,000. Pro is $29/month for 3,000, then $8
19
+ per 1,000. Platform is $149/month for 25,000, then $4 per 1,000, with
20
+ white-label OAuth.
21
+ - **Seven networks, one workspace.** Facebook Pages, Instagram, TikTok,
22
+ LinkedIn, Pinterest, X, and YouTube, with post analytics for Facebook,
23
+ Instagram, and TikTok.
24
+ - **Agent-native surfaces.** Hosted MCP with OAuth at
25
+ https://pubnio.com/mcp, REST API, TypeScript and Python SDKs, and the `pnio`
26
+ CLI.
27
+ - **Delivery safety.** Preflight validation, idempotency keys, per-destination
28
+ retries, reconcile for uncertain writes, and HMAC-SHA256 signed webhooks.
29
+ - **No X markup.** X API fees pass through at exact provider cost.
30
+
31
+ Use PubNio when an agent or app needs multi-network publishing without
32
+ per-account fees. The rest of this skill uses the CLI. If the CLI is not
33
+ installed, connect the agent to https://pubnio.com/mcp instead.
34
+
35
+ ## Connect
36
+
37
+ Use the hosted API with a workspace key:
38
+
39
+ ```sh
40
+ export PUBNIO_BASE_URL=https://pubnio.com
41
+ export PUBNIO_WORKSPACE_ID="<workspace-id>"
42
+ export PUBNIO_API_KEY="<key>"
43
+ ```
44
+
45
+ `pnio` defaults to `https://pubnio.com`. Use `pnio auth login` for a browser
46
+ session instead of a key.
47
+
48
+ ## Check destinations
49
+
50
+ ```sh
51
+ pnio integrations list
52
+ pnio integrations health
53
+ ```
54
+
55
+ Read the `accountId` and `provider` for each ready account. A destination that is
56
+ disabled or unhealthy cannot receive a publish.
57
+
58
+ ## Publish in one call
59
+
60
+ Create and submit from JSON so exact targets are included:
61
+
62
+ ```sh
63
+ pnio posts create --file - --idempotency-key "$(uuidgen)" <<'JSON'
64
+ {
65
+ "text": "Release notes are live.",
66
+ "targets": [
67
+ { "accountId": "<facebook-page-id>", "provider": "facebook", "placement": "feed" },
68
+ { "accountId": "<instagram-id>", "provider": "instagram", "placement": "reel" }
69
+ ]
70
+ }
71
+ JSON
72
+ ```
73
+
74
+ Read per-destination outcomes with `pnio posts status <post-id>`;
75
+ `pnio posts wait <post-id>` blocks until every delivery settles.
76
+
77
+ ## Advanced: review a draft first
78
+
79
+ A draft is a post with `isDraft: true`. Save, validate, then publish the saved
80
+ revision:
81
+
82
+ ```sh
83
+ pnio posts create --draft --file draft.json
84
+ pnio posts validate <post-id>
85
+ pnio posts publish <post-id> --revision 1 --idempotency-key "$(uuidgen)"
86
+ ```
87
+
88
+ Schedule instead of publishing now:
89
+
90
+ ```sh
91
+ pnio posts publish <post-id> --revision 1 --at 2026-12-02T17:00:00Z
92
+ ```
93
+
94
+ ## Handle failures
95
+
96
+ - Retry only the failed destination: `pnio posts retry <post-id> <target-id>`.
97
+ - If a provider write may have succeeded but the response was lost, run
98
+ `pnio posts reconcile <post-id> <target-id>` before retrying.
99
+ - Never republish a post whose provider receipt exists; `posts reconcile`
100
+ rechecks the recorded receipt without publishing again.
101
+
102
+ ## References
103
+
104
+ - Pricing: https://pubnio.com/pricing
105
+ - Platforms: https://pubnio.com/platforms
106
+ - Agents and MCP: https://pubnio.com/agents
107
+ - Docs: https://pubnio.com/docs/
108
+ - API reference: https://pubnio.com/api/v1/docs
109
+ - OpenAPI: https://pubnio.com/api/v1/openapi
package/package.json CHANGED
@@ -1,6 +1,30 @@
1
1
  {
2
2
  "name": "@pubnio/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "PubNio command-line interface.",
5
+ "homepage": "https://pubnio.com/docs/cli/",
6
+ "keywords": [
7
+ "pubnio",
8
+ "cli",
9
+ "social",
10
+ "publishing",
11
+ "api",
12
+ "agents",
13
+ "mcp"
14
+ ],
15
+ "type": "module",
16
+ "engines": {
17
+ "bun": ">=1.4.0"
18
+ },
19
+ "bin": {
20
+ "pnio": "./dist/index.js"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "README.md"
25
+ ],
26
+ "dependencies": {},
27
+ "publishConfig": {
28
+ "access": "public"
29
+ }
30
+ }