posthive-cli 0.1.0 → 0.1.2

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
@@ -22,7 +22,9 @@ You need a Posthive account and an API key ([posthive.co](https://posthive.co)
22
22
 
23
23
  ```bash
24
24
  export POSTHIVE_API_KEY=ph_your_key_here
25
- export POSTHIVE_API_URL=https://api.posthive.co # or your self-hosted URL
25
+
26
+ # Optional — only needed for self-hosted Posthive. Defaults to https://api.posthive.co
27
+ export POSTHIVE_API_URL=http://localhost:3001
26
28
  ```
27
29
 
28
30
  ## Usage
package/dist/index.js CHANGED
@@ -7,9 +7,10 @@
7
7
  *
8
8
  * Every command outputs structured JSON for easy parsing by LLMs and scripts.
9
9
  *
10
- * Required env vars:
11
- * POSTHIVE_API_KEY — API key from Posthive Settings → API Keys
12
- * POSTHIVE_API_URL — Base URL of the Posthive API (default: https://api.posthive.co)
10
+ * Env vars:
11
+ * POSTHIVE_API_KEY — required. API key from Posthive Settings → API Keys
12
+ * POSTHIVE_API_URL — optional. Base URL of the Posthive API (default: https://api.posthive.co).
13
+ * Set this for self-hosted deployments.
13
14
  */
14
15
  import { readFile } from "node:fs/promises";
15
16
  import { basename } from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthive-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Posthive CLI — schedule posts to 11 social platforms from the command line or any AI agent (Claude Code, OpenClaw, Cursor)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,11 +9,9 @@ Schedule posts to 11 social platforms from the command line. Every command outpu
9
9
 
10
10
  ## Setup
11
11
 
12
- Requires two environment variables:
13
-
14
12
  ```bash
15
- export POSTHIVE_API_KEY=ph_xxx # Posthive → Settings → API Keys (Pro/Team plan)
16
- export POSTHIVE_API_URL=https://api.posthive.co # or your self-hosted URL
13
+ export POSTHIVE_API_KEY=ph_xxx # required — Posthive → Settings → API Keys (Pro/Team plan)
14
+ export POSTHIVE_API_URL=http://localhost:3001 # optional only for self-hosted Posthive, defaults to https://api.posthive.co
17
15
  ```
18
16
 
19
17
  Run commands with `npx posthive-cli` or `posthive` if installed globally (`npm i -g posthive-cli`).