@kinetune/cli 0.0.0-stage → 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 +53 -2
- package/dist/kinetune.mjs +24936 -0
- package/package.json +40 -3
package/README.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Kinetune CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The command line for [Kinetune](https://kinetune.com): lyric videos and Spotify Canvas loops from your songs, for people, scripts and local AI agents (Claude Code, Codex, Cursor…). Every command prints JSON when its output is piped.
|
|
4
|
+
|
|
5
|
+
Full docs: https://kinetune.com/developers#cli
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @kinetune/cli # Node 20+; the command is `kinetune`
|
|
11
|
+
npx @kinetune/cli --help # or run it without installing
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Sign in
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
kinetune auth login # opens the browser: sign in, pick the organization, approve
|
|
18
|
+
kinetune auth login --api-key kt_live_KEY # or store an organization API key
|
|
19
|
+
kinetune auth status
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
In CI, set `KINETUNE_API_KEY` instead; it wins over the stored sign-in. Credentials live in `~/.config/kinetune/config.json` (mode 600, `KINETUNE_CONFIG_DIR` to move it).
|
|
23
|
+
|
|
24
|
+
## Make a video
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
kinetune artists create --name "Nova Lane"
|
|
28
|
+
kinetune songs create --artist-id ARTIST_ID --title "Midnight Drive" --audio ./midnight-drive.wav --cover-art ./cover.jpg
|
|
29
|
+
kinetune songs get SONG_ID # wait for analysis.status "ready"
|
|
30
|
+
kinetune create canvas --song-id SONG_ID # quotes first, shows the credits and asks
|
|
31
|
+
kinetune videos wait VIDEO_ID
|
|
32
|
+
kinetune videos download VIDEO_ID
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`kinetune create …` never spends credits without asking: pass `--yes`, or `--max-credits N` to refuse anything pricier.
|
|
36
|
+
|
|
37
|
+
## Find artists and songs
|
|
38
|
+
|
|
39
|
+
Lists return 50 per page, sorted by name; search with `--q` and page with `--limit` (1-100) and `--offset`.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
kinetune artists list --q "nova" # part of the artist name
|
|
43
|
+
kinetune songs list --q "tide" --limit 20 # part of the title or the artist name
|
|
44
|
+
kinetune songs list --status ready --sort newest # analyzed songs, latest uploads first
|
|
45
|
+
kinetune songs list --artist-id ARTIST_ID --offset 50 # the next page of one artist's songs
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## For agents and scripts
|
|
49
|
+
|
|
50
|
+
- Path ids are arguments, fields are flags, `--input file.json` (or `-` for stdin) takes the whole request.
|
|
51
|
+
- `kinetune schema <command>` prints a command's JSON input schema; `kinetune openapi` prints the whole API.
|
|
52
|
+
- Exit codes: `0` done, `1` API or network error, `2` invalid usage or over `--max-credits`, `3` not signed in or not allowed.
|
|
53
|
+
|
|
54
|
+
Commands, the REST API, the MCP server (`https://kinetune.com/mcp`) and the n8n node share one definition of every operation.
|