Install Spyctl CLI
Spyctl, an open source CLI tool, allows you to view and manage resources within your Spyderbat environment.
Source code: https://github.com/spyderbat/spyctl
The initial step in utilizing any software package is ensuring its correct installation, so let's get started by walking through the installation process for Spyctl.
Prerequisites
Python 3.8 or newer
Installation Command
To install spyctl globally requires the pipx utility.
sudo apt install pipxInstall spyctl using pipx.
pipx install spyctlVerify the installation.
spyctl --versionAlternatively, you can use a virtual environment to install spyctl.
python -m venv spyctl
source spyctl/bin/activate
pip install spyctlVerify the installation.
spyctl --versionTo install Spyctl, simply run this command in your terminal of choice:
pip install spyctlTo verify the installation:
spyctl --versionEnabling Shell Completion
To enable shell completion, follow these steps:
Create the Spyctl directory if you haven’t already.
mkdir -p ~/.spyctlGenerate the shell completion script.
_SPYCTL_COMPLETE=bash_source spyctl > ~/.spyctl/spyctl-complete.bashAdd the following line to the end of ~/.bashrc.
. ~/.spyctl/spyctl-complete.bashGenerate and save the shell completion script.
_SPYCTL_COMPLETE=fish_source spyctl > ~/.config/fish/completions/spyctl-complete.fishCreate the Spyctl directory if you haven’t already.
mkdir -p ~/.spyctlGenerate the shell completion script.
_SPYCTL_COMPLETE=zsh_source spyctl > ~/.spyctl/spyctl-complete.zshAdd the following line to the end of ~/.zshrc.
. ~/.spyctl/spyctl-complete.zshAfter modifying the shell config, you need to start a new shell in order for the changes to be loaded.
Last updated
Was this helpful?