this is a stripped-down version of ani-cli that:
- searches for anime
- lets you select from results
- fetches urls for all episodes
- either saves them to a text file OR downloads them directly
what was removed:
- video playback
- history tracking
- continue watching
- quality selection
- episode selection
- dub mode
- all extra features and options
what was added:
- direct episode downloading with aria2c (new feature!)
install these
curl- for fetching datased- for text processinggrep- for pattern matchingfzf- for the selection menuaria2c- required only for download mode (-d/--download)
run:
ani-cli.shthen:
- type the anime name when prompted
- select the anime from the list (use arrow keys, press enter)
- wait for all episode urls to be fetched
- urls are saved to
anime_name.txtin your current directory
run:
ani-cli.sh -d # Season 01 (default)
ani-cli.sh -d -s 2 # Season 02
ani-cli.sh --download --season 3 # Season 03then:
- type the anime name when prompted
- select the anime from the list (use arrow keys, press enter)
- wait for all episodes to be downloaded
- episodes are saved in Jellyfin-compatible structure:
- Directory:
Show Name/Season 01/ - Filenames:
Show Name S01E01.mp4,Show Name S01E02.mp4, etc.
- Directory:
ani-cli.sh --help$ ./ani-cli.sh
checking dependencies...
search anime: nekopara
# select from list using fzf
fetching urls for all episodes...
writing to: nekopara.txt
fetching episode 1...
fetching episode 2...
...
fetching episode 12...
done! urls saved to: nekopara.txtthe output file will contain one url per line:
https://example.com/episode1.m3u8
https://example.com/episode2.m3u8
https://example.com/episode3.m3u8
...
$ ./ani-cli.sh -d
checking dependencies...
search anime: no game no life
# select from list using fzf
downloading episodes to directory: No Game No Life/Season 01
fetching episode 1...
Downloading episode 1 to No Game No Life/Season 01/No Game No Life S01E01.mp4...
✓ Successfully downloaded episode 1
fetching episode 2...
Downloading episode 2 to No Game No Life/Season 01/No Game No Life S01E02.mp4...
✓ Successfully downloaded episode 2
...
done! episodes downloaded to: No Game No Life/Season 01Jellyfin-compatible structure:
- Directory:
No Game No Life/Season 01/ - Episodes:
No Game No Life S01E01.mp4,No Game No Life S01E02.mp4, etc. - Season 2:
No Game No Life/Season 02/No Game No Life S02E01.mp4
linux/mac:
sudo rm /usr/local/bin/ani-cliandroid (termux):
rm $prefix/bin/ani-cliwindows:
rm "$(which ani-cli)"- "no results found": make sure you spelled the anime name correctly
- "program not found": install the missing dependency (aria2c is only needed for download mode)
- slow fetching: this is normal, especially for anime with many episodes. the script fetches each episode sequentially.
- download failures: aria2c will retry failed downloads. check your internet connection and available disk space.
- invalid urls: the source site may have changed. check for updates or report an issue.
- permission denied: make sure you have write permissions in the current directory for creating download folders.
this is based on the full-featured ani-cli project. if you want to actually watch anime in your terminal go there