ani

#Global flags

These flags apply to every command.

FlagShortDefaultDescription
--help-hShow help for the current command
--verbose-vfalseEnable verbose output
--quiet-qfalseSuppress non-essential output
--jsonfalseOutput results as a JSON array
--no-colorfalseDisable ANSI color output
--langenglishTitle language: romaji, english, or native
--typeanimeMedia type: anime or manga

#Environment variables

VariableDescription
NO_COLORSet to any non-empty value to disable color output (equivalent to --no-color)

#Exit codes

CodeMeaning
0Success
1Runtime failure (API error, network error)
2Invalid usage (bad flags, missing required argument)

#Shell completions

ani ships Cobra-generated completions for bash, zsh, and fish.

# bash — system-wide
ani completion bash > /etc/bash_completion.d/ani

# zsh — user fpath
ani completion zsh > "${fpath[1]}/_ani"

# fish
ani completion fish > ~/.config/fish/completions/ani.fish

After installing, reload your shell or source the completion file to activate it.

#Data source

ani queries the AniList GraphQL API (https://graphql.anilist.co). No API key or account is required. The public rate limit is 90 requests per minute.