3 Play videos from YouTube and PeerTube from the
4 command line using your preferred desktop media player.
6 This application is implemented in [Nim language](https://nim-lang.org) using
7 only the standard library.
9 ![clitube screenshot with search term 'baby yoda'](screenshot.png)
13 - [x] Search for videos using keywords
16 - [x] Play direct links from YouTube and PeerTube
17 - [x] Stream video from magnet links
20 - [ ] Configuration options
21 - [ ] Play magnet links
25 CLI Tube depends on the following:
27 - mpv (recommended) or vlc
28 - peerflix (for magnet links)
30 Download the latest build from GitlabCI (amd64 GNU/Linux only).
33 wget https://gitlab.com/njoseph/cli-tube/-/jobs/artifacts/master/download?job=compile -O artifacts.zip
38 For other platforms, create a release artifact using the following command:
41 nim c -d:ssl -d:release clitube.nim
44 Copy the binary to a directory on your PATH such as `/usr/local/bin`
51 # If your search query has multiple words, use quotes
54 # Advanced: Play audio of the first search result
55 clitube -m -l "counting stars"
58 ### Commandline arguments
60 | **Arguments** | **Explanation** |
61 |---------------|--------------------------------------------|
62 | -m, --music | Play Music only, no video |
63 | -l, --lucky | Try your luck with the first search result |
67 One-liner for compiling and running
70 nim c -d:ssl -r clitube.nim 'nim lang'