typefully 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 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.
@@ -9,7 +12,7 @@ Built on the [Typefully API](https://typefully.com/docs/api). [Typefully](https:
9
12
  ### 1. Install
10
13
 
11
14
  ```bash
12
- pnpm add -g typefully
15
+ npm i -g typefully
13
16
  ```
14
17
 
15
18
  Or use directly with npx:
@@ -18,6 +21,12 @@ Or use directly with npx:
18
21
  npx typefully --help
19
22
  ```
20
23
 
24
+ or skills for your AI agent:
25
+
26
+ ```bash
27
+ npx skills add ahmadawais/typefully-cli
28
+ ```
29
+
21
30
  ### 2. Copy your API Key
22
31
 
23
32
  You'll need a Typefully API key. Copy an existing key or create a new one at https://typefully.com/?settings=api
@@ -31,29 +40,32 @@ typefully setup
31
40
  ```
32
41
 
33
42
  > [!TIP]
34
- > You can also set the API key as an environment variable: `export TYPEFULLY_API_KEY=your_key_here`
43
+ > You can also set the API key as an environment variable: `export TYPEFULLY_API_KEY=your_key_here` but not needed if you run `typefully setup` which saves it to a config file.
35
44
 
36
45
  ### 4. Start using it
37
46
 
38
47
  ```bash
39
- # Create a tweet
40
- typefully drafts create --text "Hello, world!"
48
+ tfly # interactive pick text, platform, schedule
49
+ tfly "Hello, world!" # instant draft from text
41
50
 
42
- # Quick alias positional text, no flags needed
43
- typefully create-draft "Hello, world!"
51
+ tfly rm # interactivepick drafts to delete
52
+ tfly rm <draft_id> # delete a specific draft
44
53
 
45
- # List scheduled posts
46
- typefully drafts list --status scheduled
54
+ tfly drafts list --status scheduled
55
+ tfly drafts list --json # raw JSON for scripts/pipes
56
+ ```
47
57
 
48
- # Create a cross-platform post
49
- typefully drafts create --platform x,linkedin --text "Big announcement!"
58
+ #### Aliases (short forms)
50
59
 
51
- # Schedule for next available slot
52
- typefully drafts create --text "Scheduled post" --schedule next-free-slot
60
+ | Alias | Equivalent |
61
+ |-------|-----------|
62
+ | `tfly "text"` | `typefully drafts create --text "text"` |
63
+ | `tfly create-draft "text"` | same, with full flag support |
64
+ | `tfly update-draft <id> "text"` | `typefully drafts update` |
65
+ | `tfly rm [draft_id]` | `typefully drafts delete` |
66
+
67
+ <img src="https://github.com/ahmadawais/typefully-cli/blob/main/.github/image.png?raw=true" alt="Typefully CLI" />
53
68
 
54
- # Output raw JSON (for scripts/pipes)
55
- typefully drafts list --json
56
- ```
57
69
 
58
70
  ## Output Modes
59
71
 
@@ -90,6 +102,8 @@ typefully config show
90
102
  typefully config set-default # interactive
91
103
  typefully config set-default 123 --location global
92
104
  typefully config set-default 123 --scope local # --scope is an alias for --location
105
+ typefully config set-platforms # interactive multiselect
106
+ typefully config set-platforms --platforms x,linkedin,threads
93
107
  ```
94
108
 
95
109
  ### User & Social Sets
@@ -114,6 +128,7 @@ typefully drafts get <draft_id> --use-default
114
128
  typefully drafts get <social_set_id> <draft_id>
115
129
 
116
130
  # Create
131
+ tfly "Post content" # alias for `typefully drafts create --text "Post content"`
117
132
  typefully drafts create --text "Post content"
118
133
  typefully drafts create -f ./post.txt # -f is short for --file
119
134
  typefully drafts create --text "..." --platform x,linkedin
@@ -191,7 +206,8 @@ Config files are stored as JSON with `0600` permissions:
191
206
  ```json
192
207
  {
193
208
  "apiKey": "typ_xxxx",
194
- "defaultSocialSetId": 12345
209
+ "defaultSocialSetId": 12345,
210
+ "defaultPlatforms": ["x", "linkedin"]
195
211
  }
196
212
  ```
197
213
 
@@ -226,7 +242,7 @@ npx skills add ahmadawais/typefully-cli
226
242
 
227
243
  - [Typefully](https://typefully.com)
228
244
  - [API Documentation](https://typefully.com/docs/api)
229
- - [CLI Spec](./CLI-SPEC.md)
245
+ - [CLI Spec](./skills/spec.md)
230
246
 
231
247
  ## License
232
248