Setup a CTF_ROOT_DIR
environment variable to make the script execute in the right folder or execute the script from that folder.
Install with uv:
uv tool install git+https://github.com/nsec/ctf-script.git
Install with pipx:
pipx install git+https://github.com/nsec/ctf-script.git
echo 'eval "$(register-python-argcomplete ctf)"' >> ~/.bashrc && source ~/.bashrc # If using bash
echo 'eval "$(register-python-argcomplete ctf)"' >> ~/.zshrc && source ~/.zshrc # If using zsh
Install with uv virtual environment:
git clone https://github.com/nsec/ctf-script.git
cd ctf-script
uv venv venv
source venv/bin/activate
uv pip install -e .
Install with virtual environment and pip:
git clone https://github.com/nsec/ctf-script.git
cd ctf-script
python3 -m venv venv
source venv/bin/activate
pip install -e .