1.7.0 • Published 7 months ago

@irfanshadikrishad/anilist v1.7.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
7 months ago

@irfanshadikrishad/anilist

Minimalist unofficial AniList CLI for Anime and Manga Enthusiasts.

NPM Version NPM Downloads NPM License

How to install?

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

How to use?

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>

!NOTE here <client-id> and <client-secret> should be replaced by the ones that you recieved from the developer setting. Also don't include <>, this only indicates need-to-be-replaced data.

CLI Commands Overview

CommandOptionsDescription
login-i, --id -s, --secretLog in with your AniList credentials
logoutNoneLog out from your AniList account
whoamiNoneDisplay information about the logged-in user
-V, --versionNoneDisplay the current version of the CLI
-h, --helpNoneDisplay 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<username>Get information about a specific AniList user
lists (alias: ls)-a, --anime -m, --mangaFetch anime or manga lists of the logged-in user
delete (alias: del)-a, --anime -m, --manga -s, --activityDelete collections of anime, manga or activities
upcoming (alias:up)-c (default: 10)Fetch upcoming anime (default count is 10)
anime<anime-id>Get anime details by Anime Id
manga<manga-id>Get manga details by Manga ID
search (alias:srch/find)<query> -a, --anime -m, --manga -c (default: 10)Get anime/manga search results
status (alias: write/post)<status>Write a status... (text/markdown/html)
export (alias: exp)-a, --anime -m, --mangaExport anime or manga list in JSON, CSV or XML (MyAnimeList/AniDB)
import (alias: imp)-a, --anime -m, --mangaImport anime or manga list from exported JSON, MyAnimeList (XML) or AniDB (json-large)
social (alias: sol)-f, --follow -u, --unfollowFollow users who follows you or Unfollow who doesn't follow you back with a simple command
move (alias: mv)-a, --anime -m, --mangaMove entire list to another list

Command Breakdown:

login:

anilist login -i <client-id> -s <client-secret>
  • Options:
    • -i, --id: Specify AniList Client ID
    • -s, --secret: Provide the AniList Client Secret
  • Usage: Authenticate and log in to AniList using your ID and secret credentials.

logout:

anilist logout
  • Description: End the current session and log out from your AniList account.

whoami:

anilist whoami
  • Description: Retrieve and display information about the currently logged-in user, including stats and profile details.

-V, --version:

anilist -V
  • Description: Quickly check which version of the CLI you are running.

-h, --help:

anilist -h
  • Description: List all available commands and their usage details for quick reference.

trending (alias: tr):

anilist tr -c 15
  • Options:
    • -c (count): Specify how many trending anime to fetch (default: 10).
  • Description: Fetch the current trending anime series, with the option to customize how many results to display.

popular (alias: plr):

anilist popular
  • Options:
    • -c (count): Specify how many popular anime to fetch (default: 10).
  • Description: Fetch the most popular anime series, with the option to customize how many results to display.

upcoming (alias: up):

anilist up -c 25
  • Options:
    • -c (count): Specify how many upcoming anime to fetch (default: 10).
  • Description: Fetch the upcoming anime series next season, with the option to customize how many results to display.

user:

anilist user <username>
  • Options:
    • <username>: Specify the AniList username to fetch.
  • Description: Retrieve profile information about a specific AniList user.

lists (alias: ls):

anilist ls -a
  • Options:
    • -a, --anime: Fetch the authenticated user's anime list.
    • -m, --manga: Fetch the authenticated user's manga list.
  • Description: Get the anime or manga lists of the logged-in user.

delete (alias: del):

anilist del -s,
  • Options:
    • -a, --anime: Delete your specific anime collection that you want.
    • -m, --manga: Delete your specific manga collection that you want.
    • -s,, --activity: Delete all or any type of activities you want.
  • Description: Delete the entire anime or manga collection from the logged-in user's profile.

anime

anilist anime <anime-id>
  • Options
    • <anime-id> (eg: 21) : Id of the anime you want to get details of.
  • Description: Get anime details by anime Id.

manga

anilist manga <manga-id>
  • Options
    • <anime-id> (eg: 21) : Id of the manga you want to get details of.
  • Description: Get manga details by manga Id.

search (alias: srch/find):

anilist search <query> -a -c 20
  • Options:
    • <query> : What you want to search (eg: naruto).
    • -a, --anime: To get results of anime search.
    • -m, --manga: To get results of manga search.
    • -c (count): Specify how many items to fetch (default: 10).
  • Description: Get anime/manga search results

status (alias: write/post):

anilist write <status>
  • Options:
    • <status> : This is what you want to write, It can be HTML, Markdown and/or Text. But wrap it with quotation mark (") else it might get cut-off.
  • Description: Get anime/manga search results

export (alias: exp):

anilist export -a
  • Options:
    • -a, --anime: To export anime list.
    • -m, --manga: To export manga list.
  • Description: Export anime or manga list. For XML (MyAnimeList/AniDB) file, to import it on MyAnimeList, go here and choose MyAnimeList Import for AniDB go here and select MyAnimeList.net - XML anime list export.

import (alias: imp):

anilist import -m
  • Options:
    • -a, --anime: To import anime list.
    • -m, --manga: To import manga list.
  • Description: Import anime or manga list. If you want to import anime/manga list from MyAnimeList, export the XML from here, for exporting list from AniDB go here.

!NOTE If you have exported from AniDB, you will have to unzip it, and there should be a file named mylist.json, copy and paste it in your systems download folder, and select it from import option.

!IMPORTANT If you are importing from a file, place the file in the system specific download folder, And the exported file will also be exported there as well.

social (alias: sol):

anilist sol -f
  • Options:
    • -f, --follow: To follow users who follows you automatically.
    • -u, --unfollow: To unfollow users who doesn't follow you back.
  • Description: It follows users who follows you or unfollow users who doesn't follow you back at ease.

Security

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.

Contribution

Want to contribute to the project? Check out complete guideline here.

Thanks for visiting 💙

1.4.6

10 months ago

1.2.8

12 months ago

1.4.5

10 months ago

1.2.7

12 months ago

1.4.4

10 months ago

1.2.6

1 year ago

1.4.3

10 months ago

1.2.5

1 year ago

1.4.2

11 months ago

1.2.4

1 year ago

1.4.1

11 months ago

1.2.3

1 year ago

1.4.0

11 months ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.0-forbidden.7

8 months ago

1.3.0-forbidden.6

10 months ago

1.2.1-forbidden.2

12 months ago

1.2.0-forbidden.6

10 months ago

1.2.12

12 months ago

1.2.13

11 months ago

1.2.0-forbidden.2

12 months ago

1.2.10

12 months ago

1.2.11

12 months ago

1.2.16

11 months ago

1.2.14

11 months ago

1.2.15

11 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.4.0-forbidden.6

10 months ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.7.0

7 months ago

1.5.1

8 months ago

1.1.5

1 year ago

1.5.0

9 months ago

1.1.4

1 year ago

1.3.1

11 months ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.10

1 year ago

1.0.0-forbidden.4

11 months ago

1.0.0-forbidden.3

12 months ago

1.4.9

10 months ago

1.0.1-forbidden.3

11 months ago

1.4.11

9 months ago

1.4.8

10 months ago

1.4.10

9 months ago

1.4.7

10 months ago

1.2.9

12 months ago

1.0.0-forbidden.6

11 months ago

1.0.0-forbidden.5

11 months ago

1.0.0-forbidden.7

10 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.0-beta.0

1 year ago