You do not have a cardano-cli binary available in $PATH. Please make it available before using CNTools. Refer to guild-operators documentation for the same

anyone can kinda guide me on how to fix this error code please.

You do not have a cardano-cli binary available in $PATH. Please make it available before using CNTools. Refer to guild-operators documentation for the same.

when you execute a program (without specifying the path to it) the system searches through $PATH variable, examining each directory from left to right in the list, looking for a command that matches the command name you executed.

so, when you execute cardano-cli or cardano-node, the system looks for the file, and in your case, it hasn’t found in any of the directories.

you can check which paths are specified in the variable by executing:

echo $PATH

you can check if the system can find cardano-cli by typing:

type -p cardano-cli

most probably you don’t have the path set to the cardano-cli binary (executive) file.

please check where you have placed it, usually, it’s either in ~/.local/bin or ~/.cabal/bin

if it’s in ~/.local/bin, the to add a path to the $PATH variable you can execute this:
echo “export PATH=~/.local/bin:$PATH” >> ~/.bashrc
source ~/.bashrc
echo $PATH

and then check if you have set everything correctly:

type -p cardano-cli

if you see a path to the file, then you are good to go.

let me know if you need any further help
Lauris

4 Likes

thank you lauris
i think its in my cabal.bin i cant find cardano-cli this is whats i found below

also when i perform ~/git/cardano-node$ cardano-cli version it says
cardano-cli: command not found

bin config logs packages store
(~/.cabal$)

share
(~/.local$)

CODEOWNERS README.rst cabal.project cardano-node dist-newstyle release.nix
LICENSE STYLE.md cardano-api ci doc scripts
Makefile Setup.hs cardano-cli configuration mainnet-genesis.json shell.nix
NOTICE bors.toml cardano-config default.nix nix stack.yaml
(~/git/cardano-node$)

actually its missing from cabal how do i add it ?
Untitled

its in (~/git/cardano-node$)
how do i move from here to ~/.cabal/bin
cardano node

had to reset it a few times but now its all working thank you again guys man one week of my pool being down i gotta catch up now haha we LIVE
qwe

This helped me immensely. Thank you!

1 Like

This was helpful. Thank you!