🎧 The official command-line interface for Rocksky — a modern, decentralized music tracking and discovery platform built on the AT Protocol.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update CLI help

+35 -34
+35 -34
src/index.ts
··· 25 25 26 26 program 27 27 .command("login") 28 - .argument("<handle>", "Your BlueSky handle (e.g., <username>.bsky.social)") 29 - .description("Login with your BlueSky account and get a session token.") 28 + .argument("<handle>", "your BlueSky handle (e.g., <username>.bsky.social)") 29 + .description("login with your BlueSky account and get a session token.") 30 30 .action(login); 31 31 32 32 program 33 33 .command("whoami") 34 - .description("Get the current logged-in user.") 34 + .description("get the current logged-in user.") 35 35 .action(whoami); 36 36 37 37 program 38 38 .command("nowplaying") 39 39 .argument( 40 40 "[did]", 41 - "The DID or handle of the user to get the now playing track for." 41 + "the DID or handle of the user to get the now playing track for." 42 42 ) 43 - .description("Get the currently playing track.") 43 + .description("get the currently playing track.") 44 44 .action(nowplaying); 45 45 46 46 program 47 47 .command("scrobbles") 48 - .option("-s, --skip <number>", "Number of scrobbles to skip") 49 - .option("-l, --limit <number>", "Number of scrobbles to limit") 50 - .argument("[did]", "The DID or handle of the user to get the scrobbles for.") 51 - .description("Display recently played tracks.") 48 + .option("-s, --skip <number>", "number of scrobbles to skip") 49 + .option("-l, --limit <number>", "number of scrobbles to limit") 50 + .argument("[did]", "the DID or handle of the user to get the scrobbles for.") 51 + .description("display recently played tracks.") 52 52 .action(scrobbles); 53 53 54 54 program 55 55 .command("search") 56 - .option("-a, --albums", "Search for albums") 57 - .option("-t, --tracks", "Search for tracks") 58 - .option("-u, --users", "Search for users") 59 - .option("-l, --limit <number>", "Number of results to limit") 56 + .option("-a, --albums", "search for albums") 57 + .option("-t, --tracks", "search for tracks") 58 + .option("-u, --users", "search for users") 59 + .option("-l, --limit <number>", "number of results to limit") 60 60 .argument( 61 61 "<query>", 62 - "The search query, e.g., artist, album, title or account" 62 + "the search query, e.g., artist, album, title or account" 63 63 ) 64 - .description("Search for tracks, albums, or accounts.") 64 + .description("search for tracks, albums, or accounts.") 65 65 .action(search); 66 66 67 67 program 68 68 .command("stats") 69 - .option("-l, --limit <number>", "Number of results to limit") 70 - .argument("[did]", "The DID or handle of the user to get stats for.") 71 - .description("Get the user's listening stats.") 69 + .option("-l, --limit <number>", "number of results to limit") 70 + .argument("[did]", "the DID or handle of the user to get stats for.") 71 + .description("get the user's listening stats.") 72 72 .action(stats); 73 73 74 74 program 75 75 .command("artists") 76 - .option("-l, --limit <number>", "Number of results to limit") 77 - .argument("[did]", "The DID or handle of the user to get artists for.") 78 - .description("Get the user's top artists.") 76 + .option("-l, --limit <number>", "number of results to limit") 77 + .argument("[did]", "the DID or handle of the user to get artists for.") 78 + .description("get the user's top artists.") 79 79 .action(artists); 80 80 81 81 program 82 82 .command("albums") 83 - .option("-l, --limit <number>", "Number of results to limit") 84 - .argument("[did]", "The DID or handle of the user to get albums for.") 85 - .description("Get the user's top albums.") 83 + .option("-l, --limit <number>", "number of results to limit") 84 + .argument("[did]", "the DID or handle of the user to get albums for.") 85 + .description("get the user's top albums.") 86 86 .action(albums); 87 87 88 88 program 89 89 .command("tracks") 90 - .option("-l, --limit <number>", "Number of results to limit") 91 - .argument("[did]", "The DID or handle of the user to get tracks for.") 92 - .description("Get the user's top tracks.") 90 + .option("-l, --limit <number>", "number of results to limit") 91 + .argument("[did]", "the DID or handle of the user to get tracks for.") 92 + .description("get the user's top tracks.") 93 93 .action(tracks); 94 94 95 95 program 96 96 .command("scrobble") 97 - .argument("<track>", "The title of the track") 98 - .argument("<artist>", "The artist of the track") 99 - .option("-t, --timestamp <timestamp>", "The timestamp of the scrobble") 100 - .description("Scrobble a track to your profile.") 97 + .argument("<track>", "the title of the track") 98 + .argument("<artist>", "the artist of the track") 99 + .option("-t, --timestamp <timestamp>", "the timestamp of the scrobble") 100 + .description("scrobble a track to your profile.") 101 101 .action(scrobble); 102 102 103 103 program 104 104 .command("create") 105 + .description("create a new API key.") 105 106 .command("apikey") 106 - .argument("<name>", "The name of the API key") 107 - .option("-d, --description <description>", "The description of the API key") 108 - .description("Create a new API key.") 107 + .argument("<name>", "the name of the API key") 108 + .option("-d, --description <description>", "the description of the API key") 109 + .description("create a new API key.") 109 110 .action(createApiKey); 110 111 111 112 program.parse(process.argv);