### Manual Docker Installation Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Clones the SingleFile CLI repository and builds the Docker image. ```bash git clone --depth 1 --recursive https://github.com/gildas-lormeau/single-file-cli.git cd single-file-cli docker build --no-cache -t singlefile . ``` -------------------------------- ### Install SingleFile CLI with npm Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Installs the SingleFile CLI using npm. You can then run it using npx. ```bash npm install "single-file-cli" npx single-file ... ``` -------------------------------- ### Display SingleFile CLI Help Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Displays the help message for the SingleFile CLI, showing available commands and options. ```bash single-file --help ``` -------------------------------- ### Download SingleFile CLI with Git Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Clones the SingleFile CLI repository using Git. ```bash git clone --depth 1 --recursive https://github.com/gildas-lormeau/single-file-cli.git cd single-file-cli ``` -------------------------------- ### Run Docker Container with Volume Mount (Linux/UNIX) Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Runs the SingleFile Docker container, mounting the current directory to save the output file. ```bash docker run -v $(pwd):/usr/src/app/out singlefile "https://www.wikipedia.org" wikipedia.html ``` -------------------------------- ### Run Docker Container and Save to File Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Runs the SingleFile Docker container and redirects the output to a file. ```bash docker run singlefile "https://www.wikipedia.org" > wikipedia.html ``` -------------------------------- ### Run Docker Container with Volume Mount (Windows) Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Runs the SingleFile Docker container, mounting the current directory to save the output file. ```bash docker run -v %cd%:/usr/src/app/out singlefile "https://www.wikipedia.org" wikipedia.html ``` -------------------------------- ### Run Docker Container Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Runs the SingleFile Docker container to save a web page. ```bash docker run singlefile "https://www.wikipedia.org" ``` -------------------------------- ### Make SingleFile Executable Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Makes the SingleFile script executable on Linux/Unix/BSD systems. ```bash chmod +x single-file ``` -------------------------------- ### Run Docker Container with Volume Mount and Filename Template (Windows) Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Runs the SingleFile Docker container with a volume mount and disables dumping content to stdout, useful with filename templates. ```bash docker run -v %cd%:/usr/src/app/out singlefile "https://www.wikipedia.org" --dump-content=false ``` -------------------------------- ### Run Docker Container with Volume Mount and Filename Template (Linux/UNIX) Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Runs the SingleFile Docker container with a volume mount and disables dumping content to stdout, useful with filename templates. ```bash docker run -v $(pwd):/usr/src/app/out singlefile "https://www.wikipedia.org" --dump-content=false ``` -------------------------------- ### Docker Image Tag Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Tags the pulled Docker image as 'singlefile'. ```bash docker tag capsulecode/singlefile singlefile ``` -------------------------------- ### Download SingleFile CLI Manually Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Downloads and unzips the SingleFile CLI master archive. ```bash unzip master.zip . cd single-file-cli-master ``` -------------------------------- ### Save URLs from File Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Saves multiple web pages by reading URLs from a specified text file. ```bash single-file --urls-file=list-urls.txt ``` -------------------------------- ### Compile Executables Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Compiles the SingleFile CLI executables into the `/dist` directory. ```bash ./compile.sh ``` -------------------------------- ### Save URL to File Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Saves the HTML content of a URL to a specified file in the current directory. ```bash single-file https://www.wikipedia.org wikipedia.html ``` -------------------------------- ### Dump HTML Content to Console Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Dumps the HTML content of a given URL directly to the console. ```bash single-file https://www.wikipedia.org --dump-content ``` -------------------------------- ### Docker Image Pull Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Pulls the SingleFile Docker image from Docker Hub. ```bash docker pull capsulecode/singlefile ``` -------------------------------- ### Crawl Links with Rewrite Rule Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Saves a web page and crawls its internal links, removing query parameters from URLs using a rewrite rule. ```bash single-file https://www.wikipedia.org --crawl-links=true --crawl-inner-links-only=true --crawl-max-depth=1 --crawl-rewrite-rule="^(.*)\?.*$ $1" ``` -------------------------------- ### Crawl External Links Only Source: https://github.com/gildas-lormeau/single-file-cli/blob/master/README.MD Saves a web page and crawls only external links up to a specified depth, with a rewrite rule applied. ```bash single-file https://www.wikipedia.org --crawl-links=true --crawl-inner-links-only=false --crawl-external-links-max-depth=1 --crawl-rewrite-rule="^.*wikipedia.*$" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.