/ani-cli

A cli tool to browse and play anime

Primary LanguageShellGNU General Public License v3.0GPL-3.0



You can also join us on Matrix or on Revolt.



A cli to browse and watch anime (alone AND with friends). This tool scrapes the site gogoplay.

Showcase

ani-cli.mp4

Table of Contents

Fixing errors

If you encounter "Video url not found" or any breaking issue, then make sure you are on latest version by typing sudo ani-cli -U to update on Linux, Mac and Android. On Windows, run gitbash as administrator then there type ani-cli -U. If after this the issue persists then open an issue.
If you see sed warnings or your history entries have disappeared after updating, then update your history file with the history transition script.

curl -s "https://raw.githubusercontent.com/pystardust/ani-cli/master/hist_transition.sh" | sh

It doesn't work for all anime, but the ones it can't find will print out alongside their episode numbers. In the end clean up: rm -rf ./ani-cli

Install

Arch

Also consider ani-cli-git

yay -S ani-cli

Other native packages

Packaging status

Linux & Mac OS

Install dependencies (See below)

sudo curl -sL github.com/pystardust/ani-cli/raw/master/ani-cli -o /usr/local/bin/ani-cli &&
sudo chmod +x /usr/local/bin/ani-cli

Note that mpv installed through flatpak is not compatible

To install (with Homebrew) the dependencies required on Mac OS, you can run:

brew install curl grep aria2 mpv openssl@1.1 ffmpeg git

Windows

Note that the installation instruction below must be done inside Powershell as administrator, not in Command Prompt

Install scoop (Guide)

scoop bucket add extras
mkdir -p "$env:USERPROFILE/.cache"
scoop install ani-cli -g

Make sure git bash is installed (Install)

Exit Powershell, then in Git Bash, run

echo "export MSYS_NO_PATHCONV=1" >> ~/.bashrc
source ~/.bashrc

Run ani-cli in Git Bash (Running it in cmd or powershell may or may not work)

Android

Install termux (Guide)

pkg install ani-cli

Uninstall

  • Arch Linux: yay -R ani-cli
  • Other Linux: Just remove the thing from path
  • Mac: Just remove the thing from path
  • Windows: scoop uninstall ani-cli
  • Android: Just remove the thing from path

Dependencies

  • grep
  • sed
  • awk
  • curl
  • openssl
  • mpv - Video Player
  • aria2 - Download manager
  • ffmpeg - m3u8 Downloader

Homies

  • animdl: Ridiculously efficient, fast and light-weight (supports most sources: animixplay, 9anime...) (Python)
  • anime-helper-shell: A python shell for searching, watching, and downloading anime (Python)
  • anipy-cli: ani-cli rewritten in python (Python)
  • dra-cla: ani-cli equivalent for korean dramas (Shell)
  • kaa.si-cli: Stream anime from kaa.si and sync with anilist (Python)
  • manga-cli: Read manga in the cli (Shell)
  • mov-cli: Watch movies/tv shows in the cli (work in progress) (Python/Shell)
  • saikou: Best android app for anime/manga with anilist integration (Kotlin)