oclif example Hello World CLI
$ npm install -g yt-dl
$ yt-dl COMMAND
running command...
$ yt-dl (--version)
yt-dl/0.0.0 win32-x64 node-v16.13.2
$ yt-dl --help [COMMAND]
USAGE
$ yt-dl COMMAND
...
Display help for yt-dl.
USAGE
$ yt-dl help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for yt-dl.
See code: @oclif/plugin-help
Download all the videos in a youtube playlist.
USAGE
$ yt-dl playlist [ID] [-f <value>]
ARGUMENTS
ID ID or link to a YouTube playlist
FLAGS
-f, --file=<value> [default: <$ title $>.mp3] File name template for each video in the playlist. Template properties
are 'id', 'title', 'author' 'playlist', and 'playlistId'. Note that you must supply an extension.
The application will do it's best to convert to the request format.
DESCRIPTION
Download all the videos in a youtube playlist.
EXAMPLES
$ yt-dl playlist https://www.youtube.com/playlist?list=PL062A00534D28BD25
$ yt-dl playlist PLi9drqWffJ9FWBo7ZVOiaVy0UQQEm4IbP -f '<$= author $>-<$= title $>.mp3'
See code: dist/commands/playlist.ts