Getting flyctl: command not found error post install

I have the same issue, after reading Eli’s and james’s reply, I get the hang of it and this works for me. Open the terminal and run this command

nano ~/.bashrc

then at the end of it, add the following command

export FLYCTL_INSTALL="/home/<your.username>/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"

Save the file by pressing Ctrl + X, then Y, and Enter.

I had the same issue and solve it like this:
in the terminal run
nano ~/.bashrc

added the two following lines at the end of your bashrc file

export FLYCTL_INSTALL="/home/<your.username>/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"

Close and save the bashrc file and run in the terminal

source ~/.bashrc

1 Like