IPFS Command Line Not Function Properly

After a data migration (from my SSD to HDD) gone south, my IPFS command line not working anymore. “‘ipfs’ is not recognized as an internal or external command,
operable program or batch file.”

Any help to restore it is much appreciated!

Most likely the ipfs binary is no longer on PATH defined on your system (list of directories used for binary lookup).

  • On Linux/macOS just add new location to your PATH.
  • On Windows, there are some powershell steps at Command-line | IPFS Docs

D:\go-ipfs>dir
Volume in drive D is IPFS
Volume Serial Number is 3403-A226

Directory of D:\go-ipfs

02/16/2022 07:40 PM .
02/16/2022 07:40 PM …
02/15/2022 12:58 PM 852 install.sh
02/15/2022 12:58 PM 55,464,448 ipfs.exe
02/15/2022 12:58 PM 508 LICENSE
02/15/2022 12:58 PM 520 LICENSE-APACHE
02/15/2022 12:58 PM 1,046 LICENSE-MIT
02/15/2022 12:58 PM 467 README.md
6 File(s) 55,467,841 bytes
2 Dir(s) 1,772,938,936,320 bytes free

D:\go-ipfs>

D:\go-ipfs>ipfs --version
ipfs version 0.11.0

D:\go-ipfs>$GO_IPFS_LOCATION = pwd
‘$GO_IPFS_LOCATION’ is not recognized as an internal or external command,
operable program or batch file.

D:\go-ipfs>

On Windows, you need to either execute these commands using Powershell, or update PATH manually by some other means (example).

Thank you so much! New path is added!

A post was merged into an existing topic: IPFS Files Directory Couldn’t Load