Basic usage
These Bash and Zsh examples assume you have installed the CLI and added CopyManga.
Download from a series URL
Section titled “Download from a series URL”Open a terminal in the directory where you want to save the manga and pass the full series URL:
comic-dl d "https://www.copy20.com/comic/xiangkanbaitiantongxuederuanruobiaoqing"The CLI matches the URL to an installed source and downloads the entire series to your current directory, one CBZ per chapter. d is short for download.
The CLI does not create a series folder. When downloading multiple series for a reader, use a separate output directory for each, such as -o ~/manga/series-name. CBZ filenames are based on chapter identifiers.
Download a range using a short ID
Section titled “Download a range using a short ID”comic-dl d xiangkanbaitiantongxuederuanruobiaoqing --source copymanga -o ~/manga -c 2-4A short ID has no domain, so use --source copymanga to select the source. -o sets the output directory. -c 2-4 selects the second through fourth entries in the chapter list, inclusive. An out-of-bounds range fails before anything is downloaded.
Search, list chapters, and download one chapter
Section titled “Search, list chapters, and download one chapter”comic-dl search 'Do It Yourself' --source copymangaUse the URL from the first column of the search results to list chapters. If the source supports browsing, omit the keyword to display the catalog. If the CLI reports another page, pass --page 2 or the appropriate page number.
series_url='https://www.copy20.com/comic/xiangkanbaitiantongxuederuanruobiaoqing'comic-dl l "$series_url"l is short for list. The first column is the chapter ID, and the second is its title. If you already have a supported chapter URL, replace the placeholder below and set the output directory with -o:
comic-dl chapter '<chapter URL>' -o ./downloadsSee advanced usage to select by chapter ID, combine ranges, or change concurrency. The CopyManga extension README explains source-specific options such as chapter groups.