2.0.0 • Published 2 years ago
@contiguity/cli v2.0.0
Read more about using the CLI in the docs, at docs.contiguity.co.
Installation
Using Contiguity CLI requires Node.js to be installed.
You can install the Contiguity CLI globally using the following command:
$ npm install -g contiguity-cliSetup
Before using other commands, set your Contiguity API token using the following command:
$ contiguity set-tokenBuilding
Deno, Node.js, and Pandoc are required to build the CLI. To install them, run the following commands:
# Windows
$ winget install DenoLand.Deno OpenJS.NodeJS JohnMacFarlane.Pandoc
# macOS
$ brew install deno node pandoc
# Ubuntu, Debian, and derivatives
$ sudo apt install nodejs pandoc && curl -fsSL https://deno.land/install.sh | sh
# Arch Linux, Manjaro, and derivatives
$ sudo pacman -S deno nodejs pandoc
# Red Hat, Fedora, and derivatives
$ sudo dnf install nodejs pandoc && curl -fsSL https://deno.land/install.sh | sh
# Void Linux
$ sudo xbps-install nodejs pandoc && curl -fsSL https://deno.land/install.sh | shThen, run the following command to build the CLI:
deno task buildThe built CLI will be in ./npm. You can test it by running npm i -g ./npm to
install the built CLI globally.
If you have a man program on your system (aka you aren't on Windows), you can
also run this command to build and preview the man page:
deno task preview-manYou can run the cli without building it by running this command:
deno task cli --help