Installation Methods
There are a variety of ways to install the tool and support for different operating systems.
Homebrew
- Install the Cask: ```console brew install --cask digitalghost-dev/tap/poke-cli ````
- Verify install:
Scoop
-
Add the bucket:
-
Install poke-cli:
-
Verify installation:
Linux Packages
This package repository is generously hosted by Cloudsmith. Cloudsmith is a fully cloud-based service that lets you easily create, store, and share packages in any format, anywhere.
- Run the Repository Setup script first for the correct Linux distribution.
- Run the corresponding Installation Command afterwards.
Package Type | Distributions | Repository Setup | Installation Command |
---|---|---|---|
apk |
Alpine | sudo apk add --no-cache bash && curl -1sLf 'https://dl.cloudsmith.io/basic/digitalghost-dev/poke-cli/setup.alpine.sh' \| sudo -E bash |
sudo apk add poke-cli=1.6.0 --update-cache |
deb |
Ubuntu, Debian | curl -1sLf 'https://dl.cloudsmith.io/public/digitalghost-dev/poke-cli/setup.deb.sh' \| sudo -E bash |
sudo apt-get install poke-cli=1.6.0 |
rpm |
Fedora, CentOS, Red Hat, openSUSE | curl -1sLf 'https://dl.cloudsmith.io/public/digitalghost-dev/poke-cli/setup.rpm.sh' \| sudo -E bash |
sudo yum install poke-cli-1.6.0-1 |
Docker Image
- Install Docker Desktop.
- Once installed, use the command below to pull the image and run the container!
--rm
: Automatically remove the container when it exits.- Optional.
-i
: Interactive mode, keeps STDIN open for input.- Necessary.
-t
: Allocates a terminal (TTY) for a terminal-like session.- Necessary.
- Choose how to interact with the container:
- Run a single command and exit:
- Enter the container and use its shell:
console docker run --rm -it --name poke-cli --entrypoint /bin/sh digitalghostdev/poke-cli:v1.6.0 -c "cd /app && exec sh" # placed into the /app directory, run the program with './poke-cli' # example: ./poke-cli ability swift-swim
Binary
- Head to the releases page of the project.
- Choose a version to download. The latest is best.
- Choose an operating system and click on the matching zipped folder to start the download.
- Extract the folder. The tool is ready to use.
- Either change directories into the extracted folder or move the binary to a chosen directory.
- Run the tool!
[!IMPORTANT] For macOS, you may have to allow the executable to run as it is not signed. Head to System Settings > Privacy & Security > scroll down and allow executable to run.
View Image of Settings
Example usage
# Windows
.\poke-cli.exe pokemon charizard --types --abilities
# Unix
.\poke-cli ability airlock --pokemon
Source
- Run the following command:
- The tool should be ready to use if
$PATH
is set up.