An ani-cli wrapper written in BASH to automate downloading different anime
This script is just a wrapper for the ani-cli application developed by pystardust. You need to have the original ani-cli application installed along with it's dependencies, to use this. Installation of the necessary parts of ani-cli is taken care of, in the installation instructions, but you can find the official repository here
ani-cli-batch is a BASH script. You can provide your own BASH environment with all of the dependencies installed or you can simply follow this tutorial to set one up.
Fire up the windows terminal or a powershell window and run these commands
Install wsl
wsl --install -d debian
Follow the on-screen prompts. After the installation completes, close the terminal window, find an app called 'debian' in your start menu and launch it.
Install the dependencies
In the debian terminal:
sudo apt update && sudo apt install grep sed curl wget fzf aria2 ani-cli -y
Download and configure this script
wget https://raw.githubusercontent.com/75rx/ani-cli-batch/main/ani-cli-batch
wget https://raw.githubusercontent.com/75rx/ani-cli-batch/main/ani-cli-batch-update
chmod +x ./ani-cli-batch
chmod +x ./ani-cli-batch-update
Move them to your PATH to access them from anywhere and enable the update functionality
sudo mv -t /usr/local/bin ./ani-cli-batch ./ani-cli-batch-update
Install the dependencies
Use your package manager to download and install the dependencies
a. On Debian / Ubuntu based systems like LinuxMint:
sudo apt install grep sed curl wget fzf aria2 ani-cli -y
b. On RedHat based systems like Fedora and CentOS:
sudo dnf copr enable derisis13/ani-cli
sudo dnf install ani-cli
sudo dnf install wget
wget https://raw.githubusercontent.com/75rx/ani-cli-batch/main/ani-cli-batch
wget https://raw.githubusercontent.com/75rx/ani-cli-batch/main/ani-cli-batch-update
chmod +x ./ani-cli-batch
chmod +x ./ani-cli-batch-update
sudo mv -t /usr/local/bin/ ./ani-cli-batch ./ani-cli-batch-update
Warning: Do not install termux from the playstore. Termux's playstore builds are deprecated. If you cannot access f-droid, use github.
In termux, install the dependencies
termux-change-repo
Then choose OK by pressing the enter key.
pkg update && pkg install grep sed curl wget fzf aria2 ani-cli -y
Download and install ani-cli-batch
wget https://raw.githubusercontent.com/75rx/ani-cli-batch/main/ani-cli-batch
sed -i s_\#\!\/usr\/bin\/env\ bash_\#\!\/data\/data\/com.termux\/files\/usr\/bin\/bash_ ./ani-cli-batch
chmod +x ./ani-cli-batch
mv ./ani-cli-batch /data/data/com.termux/files/usr/bin
ani-cli-batch
CTRL
+C
together, to get back to ani-cli-batch from ani-cli. You can also crash ani-cli by typing an invalid choice (eg: "exit" or "thisisdefinitelythenameofaverynormalanimethatexists") into ani-cli's textbox.You can run ani-cli-batch-update
on Windows and Linux to automatically update the script. Update functionality is not supported on android yet. So just follow the installation instructions again, i.e., copy paste these four lines of code into termux:
wget https://raw.githubusercontent.com/75rx/ani-cli-batch/main/ani-cli-batch
sed -i s_\#\!\/usr\/bin\/env\ bash_\#\!\/data\/data\/com.termux\/files\/usr\/bin\/bash_ ./ani-cli-batch
chmod +x ./ani-cli-batch
mv ./ani-cli-batch /data/data/com.termux/files/usr/bin
Run the following command in your wsl instance (the debian app if you followed this guide), to remove ani-cli-batch without uninstalling WSL or ani-cli.
sudo rm /usr/local/bin/ani-cli-*
Refer to ani-cli's official repository for instructions on uninstalling ani-cli.
To remove everything completely (including WSL), go to Settings -> Apps, find Debian / WSL and uninstall it.
sudo rm /usr/local/bin/ani-cli-*
Refer to ani-cli's official repository for instructions on uninstalling ani-cli.
Simply uninstall Termux to get rid of everything, or sudo rm /data/data/com.termux/files/usr/bin/ani-cli-batch
to remove ani-cli-batch from your termux environment.
Refer to ani-cli's official repository for instructions on uninstalling ani-cli.
Disclaimer: This software is in no way officially affiliated with ani-cli. It wasn't made by the developers of ani-cli. I'm also sorry about the poor code documentation. I wrote this for myself after barely watching a couple of BASH videos and -- on a whim -- decided to share it online.