This guide will help you install the kpt
command on your system. The kpt
command will run the main.ts
script located in the cloned repository using Deno.
- Checks for Deno Installation: The script first checks if Deno is installed on your system. If not, it installs Deno.
- Sets Up the
kpt
Command:- Unix-based Systems: The script creates a symbolic link to the
kpt.sh
script in/usr/local/bin
, making thekpt
command globally available.
- Unix-based Systems: The script creates a symbolic link to the
- Ensures the
kpt.sh
Script is Executable: The script ensures that thekpt.sh
script has execute permissions.
kpt.sh
script. Moving the repository will break the link and the kpt
command will no longer work.
- Ensure you have
git
installed. - Clone the repository:
git clone https://github.com/arne-vl/kpt.git
- Run the installation script:
cd kpt/installers
chmod +x install.sh && ./install.sh
After running the installation script, you can verify the installation by running:
kpt --version
or
kpt -v
To uninstall the kpt
command, remove the symbolic link created during installation:
sudo rm /usr/local/bin/kpt