Unofficial AniList CLI
MPL-2.0 License
Unofficial Anilist CLI
Make sure Node.js and npm are already installed in your system. Verify installation using
node -v
npm -v
If you see the version then its installed. Otherwise install nodejs and npm should already be installed with nodejs. Then install the package by running
npm install -g @irfanshadikrishad/anilist
This will install the package globally. And you have to use commands like
anilist tr -c 15
Create an API client from anilist developer setting with an application name and redirect url as https://anilist.co/api/v2/oauth/pin
. After creating the client you will get Client ID
and Client Secret
which is required in order to login from CLI.
To login:
anilist login -i <client-id> -s <client-secret>
here <client-id>
and <client-secret>
should be replaced by the ones that you recieved from the developer setting.
Command | Options | Description |
---|---|---|
login |
-i, --id -s, --secret
|
Log in with your AniList credentials |
logout |
None | Log out from your AniList account |
me |
None | Display information about the logged-in user |
-V, --version |
None | Display the current version of the CLI |
-h, --help |
None | Display available commands and options |
trending (alias: tr )
|
-c (default: 10) |
Fetch trending anime (default count is 10) |
popular (alias: plr )
|
-c (default: 10) |
Fetch popular anime (default count is 10) |
user |
-un (username) |
Get information about a specific AniList user |
lists (alias: ls )
|
-a, --anime -m, --manga
|
Fetch anime or manga lists of the logged-in user |
delete (alias: del )
|
-a, --anime -m, --manga
|
Delete collections of anime or manga |
upcoming (alias:up )
|
-c (default: 10) |
Fetch upcoming anime (default count is 10) |
anime |
anime Id |
Get anime details by Anime Id |
login
:-i, --id
: Specify AniList Client ID-s, --secret
: Provide the AniList Client Secretlogout
:me
:-V, --version
:-h, --help
:trending
(alias: tr
):-c (count)
: Specify how many trending anime to fetch (default: 10).popular
(alias: plr
):-c (count)
: Specify how many popular anime to fetch (default: 10).upcoming
(alias: up
):-c (count)
: Specify how many upcoming anime to fetch (default: 10).user
:-un (username)
: Specify the AniList username to fetch.lists
(alias: ls
):-a, --anime
: Fetch the authenticated user's anime list.-m, --manga
: Fetch the authenticated user's manga list.delete
(alias: del
):-a, --anime
: Delete your specific anime collection that you want.-m, --manga
: Delete your specific manga collection that you want.anime
anime Id
(eg: 21) : Id of the anime you want to get details of.Since you are creating your own API client for login no else else can get your credentials and the generated access token will be stored in your own system. So, As long as you don't share your device (in case you do, just logout) you are safe.