0.2.1 • Published 5 years ago
cli-set-canonical v0.2.1
cli-set-canonical
A simple script for batch writing canonical links into files.
Install
npm install -g cli-set-canonical
Usage
set-canonical -h <host> [-d <dir>] [-e <file_exts>] [-i] [-s] [-f] [-y]
Options:
-h, --host Server host name (domain name) [string] [required]
-d, --dir Path to the directory with site files [default: "./"]
-e, --exts File extensions (comma-separated) [default: "html, php"]
-i, --with-index Do not remove "index.*" from link URL [boolean]
-s, --https Use https scheme in link URL [boolean]
-f, --override Override canonical link (if present) [boolean]
-y --yes Continue without prompt [boolean]