# IPFS Command Line Not Function Properly

**URL:** <https://discuss.ipfs.tech/t/ipfs-command-line-not-function-properly/13493>\
**Category:** Help\
**Tags:** go-ipfs\
**Created:** [February 16, 2022, 1:51am UTC](https://discuss.ipfs.tech/t/ipfs-command-line-not-function-properly/13493 "2022-02-16T01:51:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rayswchiu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rayswchiu/32/6895_2.png) [@rayswchiu](https://discuss.ipfs.tech/u/rayswchiu)\
**Post date:** [February 16, 2022, 1:51am UTC](https://discuss.ipfs.tech/t/ipfs-command-line-not-function-properly/13493/1 "2022-02-16T01:51:53Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![lidel](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lidel/32/9853_2.png) [@lidel](https://discuss.ipfs.tech/u/lidel)\
**Post date:** [February 16, 2022, 11:10am UTC](https://discuss.ipfs.tech/t/ipfs-command-line-not-function-properly/13493/2 "2022-02-16T11:10:38Z")

</div>

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](https://docs.ipfs.io/install/command-line/)

---

<div class="post-metadata">

**Author:** ![rayswchiu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rayswchiu/32/6895_2.png) [@rayswchiu](https://discuss.ipfs.tech/u/rayswchiu)\
**Post date:** [February 16, 2022, 11:46am UTC](https://discuss.ipfs.tech/t/ipfs-command-line-not-function-properly/13493/3 "2022-02-16T11:46:31Z")

</div>

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\>

---

<div class="post-metadata">

**Author:** ![lidel](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lidel/32/9853_2.png) [@lidel](https://discuss.ipfs.tech/u/lidel)\
**Post date:** [February 16, 2022, 12:07pm UTC](https://discuss.ipfs.tech/t/ipfs-command-line-not-function-properly/13493/4 "2022-02-16T12:07:08Z")

</div>

On Windows, you need to either execute these commands using [Powershell](https://docs.microsoft.com/en-us/powershell/scripting/overview), or update `PATH` manually by some other means ([example](https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee537574(v=office.14)#to-add-a-path-to-the-path-environment-variable)).

---

<div class="post-metadata">

**Author:** ![rayswchiu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rayswchiu/32/6895_2.png) [@rayswchiu](https://discuss.ipfs.tech/u/rayswchiu)\
**Post date:** [February 16, 2022, 11:35pm UTC](https://discuss.ipfs.tech/t/ipfs-command-line-not-function-properly/13493/5 "2022-02-16T23:35:24Z")

</div>

Thank you so much! New path is added!

---

<div class="post-metadata">

**Author:** ![lidel](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lidel/32/9853_2.png) [@lidel](https://discuss.ipfs.tech/u/lidel)\
**Post date:** [February 17, 2022, 12:10am UTC](https://discuss.ipfs.tech/t/ipfs-command-line-not-function-properly/13493/6 "2022-02-17T00:10:56Z")

</div>

A post was merged into an existing topic: [IPFS Files Directory Couldn’t Load](https://discuss.ipfs.tech/t/ipfs-files-directory-couldnt-load/13505/2)
