The most advanced (yet simple) cli manga downloader in the entire universe! Lua scrapers, export formats, anilist integration, fancy TUI and more!
The most advanced (yet simple) cli manga downloader in the entire universe! Lua scrapers, export formats, anilist integration, fancy TUI and more!
[!CAUTION] As of April 2025, Mangal is no longer maintained. I am incredibly grateful to everyone who used it, contributed, or gave feedback along the way - thank you! Unfortunately, I just don't have the time to keep it going right now. That said, it's open source, so you're more than welcome to fork it, build on it, or maintain your own version. I might return to it someday, but for now, I don't recommend using it as-is - running unmaintained software can introduce security risks.
curl -sSL mangal.metafates.one/run | shNote This script does not install anything, it just downloads, verifies and runs Mangal. Not available on Windows.
Install using this shell script
curl -sSL mangal.metafates.one/install | shThis script will automatically detect OS & Distro and use the best option available.
For example, on macOS it will try to use Homebrew, on Ubuntu it will install the .deb package and so on...
AUR package (maintained by @balajsra, thank you)
Install using Homebrew
brew tap metafates/mangal
brew install mangalInstall using Scoop (thanks to @SonaliBendre for adding it to the official bucket)
scoop bucket add extras
scoop install mangalThanks to @T-Dynamos for adding it to the termux-packages
pkg install mangalInstall using third-party overlay raiagent. Thanks to @leycec for maintaining it.
eselect repository enable raiagent
emerge --sync raiagent
emerge mangalInstall using Nix. Thanks to @bertof for adding it to the nixpkgs
# NixOS
nix-env -iA nixos.mangal
# Non NixOS
nix-env -iA nixpkgs.mangalInstall using Docker. (thanks to @ArabCoders for reference)
docker pull metafates/mangalTo run
docker run --rm -ti -e "TERM=xterm-256color" -v $(PWD)/mangal/downloads:/downloads -v $(PWD)/mangal/config:/config metafates/mangalVisit this link to install Go.
Clone the repo
git clone --depth 1 https://github.com/metafates/mangal.git
cd mangalGNU Make (Recommended)
make install # if you want to compile and install mangal to path
make build # if you want to just build the binary# To build
go build -ldflags "-X 'github.com/metafates/mangal/constant.BuiltAt=$(date -u)' -X 'github.com/metafates/mangal/constant.BuiltBy=$(whoami)' -X 'github.com/metafates/mangal/constant.Revision=$(git rev-parse --short HEAD)' -s -w"
# To install
go install -ldflags "-X 'github.com/metafates/mangal/constant.BuiltAt=$(date -u)' -X 'github.com/metafates/mangal/constant.BuiltBy=$(whoami)' -X 'github.com/metafates/mangal/constant.Revision=$(git rev-parse --short HEAD)' -s -w"If you want to build mangal for other architecture, say ARM, you'll have to set env variables GOOS and GOARCH
GOOS=linux GOARCH=arm64 make buildAvailable GOOS and GOARCH combinations
Download the pre-compiled binaries from the releases page and copy them to the desired location.
Just run mangal and you're ready to go.
| Bind | Description |
|---|---|
| ? | Show help |
| ↑/j ↓/k →/l ←/h | Navigate |
| g | Go to first |
| G | Go to last |
| / | Filter |
| esc | Back |
| space | Select one |
| tab | Select all |
| v | Select volume |
| backspace | Unselect all |
| enter | Confirm |
| o | Open URL |
| r | Read |
| q | Quit |
| ctrl+c | Force quit |
| a | Select Anilist manga (chapters list) |
| d | Delete single history entry |
If you wonder what those icons mean -
Dstands for "downloaded",*shows that chapter is marked to be downloaded. You can choose different icons, e.g. nerd font ones - just run mangal with--icons nerd. Available options arenerd,emoji,kaomojiandsquares
Mini mode tries to mimic ani-cli
To run: mangal mini
Inline mode is intended for use with other scripts.
Type mangal help inline for more information.
See Wiki for more examples.
See mangal help for more information
Mangal uses TOML format for configuration under the mangal.toml filename.
Config path depends on the OS.
To find yours, use mangal where --config.
For example, on Linux it would be ~/.config/mangal/mangal.toml.
Use env variable MANGAL_CONFIG_PATH to set custom config path.
See
mangal envto show all available env variables.
| Command | Description |
|---|---|
mangal config get |
Get config value for specific key |
mangal config set |
Set config value for specific key |
mangal config reset |
Reset config value for specific key |
mangal config info |
List all config fields with description for each |
mangal config write |
Write current config to a file |
TLDR; To browse and install a custom scraper from mangal-scrapers repository run
mangal sources installMangal has a Lua5.1 VM built-in + some useful libraries, such as headless chrome, http client, html parser and so on...
Check the defined modules for more information.
For scrapers examples, check the mangal-scrapers repository
This command will create example.lua file in the mangal where --sources directory.
mangal sources gen --name example --url https://example.comOpen the file and edit it as you wish. Take a look at the comments for more information. See mangal-scrapers repository for examples.
You can test it by running mangal run <filepath>
It should automatically appear in the list of available scrapers.
New to Lua? Quick start guide
Mangal also supports integration with anilist.
Besides fetching metadata for each manga when downloading, mangal can also mark chapters as read on your Anilsit profile when you read them inside mangal.
For more information see wiki
No open issues yet, or sync has not completed.