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
18 - [ ] Configuration options
19 - [ ] Play magnet links
23 CLI Tube depends on the following:
25 - mpv (recommended) or vlc
27 Download the latest build from GitlabCI (amd64 GNU/Linux only).
30 wget https://gitlab.com/njoseph/cli-tube/-/jobs/artifacts/master/download?job=compile -O artifacts.zip
35 For other platforms, create a release artifact using the following command:
38 nim c -d:ssl -d:release clitube.nim
41 Copy the binary to a directory on your PATH such as `/usr/local/bin`
48 # If your search query has multiple words, use quotes
51 # Advanced: Play audio of the first search result
52 clitube -m -l "counting stars"
55 ### Commandline arguments
57 | **Arguments** | **Explanation** |
58 |---------------|--------------------------------------------|
59 | -m, --music | Play Music only, no video |
60 | -l, --lucky | Try your luck with the first search result |
64 One-liner for compiling and running
67 nim c -d:ssl -r clitube.nim 'nim lang'