typefully 0.1.1 → 0.3.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 CHANGED
@@ -1,3 +1,6 @@
1
+ <img src="https://github.com/ahmadawais/typefully-cli/blob/main/.github/cover.png?raw=true" alt="Typefully CLI" />
2
+
3
+
1
4
  # Typefully CLI
2
5
 
3
6
  A TypeScript CLI and AI agent skill for drafting, scheduling, and managing social media posts across X, LinkedIn, Threads, Bluesky, and Mastodon.
@@ -42,24 +45,28 @@ typefully setup
42
45
  ### 4. Start using it
43
46
 
44
47
  ```bash
45
- # Create a tweet
46
- typefully drafts create --text "Hello, world!"
48
+ tfly # interactive pick text, platform, schedule
49
+ tfly "Hello, world!" # instant draft from text
47
50
 
48
- # Quick alias positional text, no flags needed
49
- typefully create-draft "Hello, world!"
51
+ tfly schedule # interactivebrowse drafts and schedule one
52
+ tfly rm # interactive — pick drafts to delete
53
+ tfly rm <draft_id> # delete a specific draft
50
54
 
51
- # List scheduled posts
52
- typefully drafts list --status scheduled
55
+ tfly drafts list --status scheduled
56
+ tfly drafts list --json # raw JSON for scripts/pipes
57
+ ```
53
58
 
54
- # Create a cross-platform post
55
- typefully drafts create --platform x,linkedin --text "Big announcement!"
59
+ #### Aliases (short forms)
56
60
 
57
- # Schedule for next available slot
58
- typefully drafts create --text "Scheduled post" --schedule next-free-slot
61
+ | Alias | Equivalent |
62
+ |-------|-----------|
63
+ | `tfly "text"` | `typefully drafts create --text "text"` |
64
+ | `tfly create-draft "text"` | same, with full flag support |
65
+ | `tfly update-draft <id> "text"` | `typefully drafts update` |
66
+ | `tfly rm [draft_id]` | `typefully drafts delete` |
67
+
68
+ <img src="https://github.com/ahmadawais/typefully-cli/blob/main/.github/image.png?raw=true" alt="Typefully CLI" />
59
69
 
60
- # Output raw JSON (for scripts/pipes)
61
- typefully drafts list --json
62
- ```
63
70
 
64
71
  ## Output Modes
65
72
 
@@ -96,6 +103,10 @@ typefully config show
96
103
  typefully config set-default # interactive
97
104
  typefully config set-default 123 --location global
98
105
  typefully config set-default 123 --scope local # --scope is an alias for --location
106
+ typefully config set-platforms # interactive multiselect
107
+ typefully config set-platforms --platforms x,linkedin,threads
108
+ typefully config set-timezone # interactive — pick from common IANA timezones
109
+ typefully config set-timezone --timezone America/New_York
99
110
  ```
100
111
 
101
112
  ### User & Social Sets
@@ -106,6 +117,19 @@ typefully social-sets list
106
117
  typefully social-sets get [social_set_id]
107
118
  ```
108
119
 
120
+ ### Interactive Scheduler
121
+
122
+ ```bash
123
+ tfly schedule
124
+ ```
125
+
126
+ Browse all drafts and schedule one with a keyboard-only flow:
127
+
128
+ - **Happy path** — `↑↓ Enter` pick draft → `Enter` next free slot → `Enter` confirm → `Enter` open in browser
129
+ - **Custom time** — select "Custom date & time", enter date (`YYYY-MM-DD`) and time (`HH:MM`), confirm
130
+
131
+ Timezone defaults to PST. Change it with `tfly config set-timezone`.
132
+
109
133
  ### Drafts
110
134
 
111
135
  ```bash
@@ -120,6 +144,7 @@ typefully drafts get <draft_id> --use-default
120
144
  typefully drafts get <social_set_id> <draft_id>
121
145
 
122
146
  # Create
147
+ tfly "Post content" # alias for `typefully drafts create --text "Post content"`
123
148
  typefully drafts create --text "Post content"
124
149
  typefully drafts create -f ./post.txt # -f is short for --file
125
150
  typefully drafts create --text "..." --platform x,linkedin
@@ -197,7 +222,9 @@ Config files are stored as JSON with `0600` permissions:
197
222
  ```json
198
223
  {
199
224
  "apiKey": "typ_xxxx",
200
- "defaultSocialSetId": 12345
225
+ "defaultSocialSetId": 12345,
226
+ "defaultPlatforms": ["x", "linkedin"],
227
+ "defaultTimezone": "America/Los_Angeles"
201
228
  }
202
229
  ```
203
230
 
@@ -232,7 +259,7 @@ npx skills add ahmadawais/typefully-cli
232
259
 
233
260
  - [Typefully](https://typefully.com)
234
261
  - [API Documentation](https://typefully.com/docs/api)
235
- - [CLI Spec](./CLI-SPEC.md)
262
+ - [CLI Spec](./skills/spec.md)
236
263
 
237
264
  ## License
238
265