# Unable to Run Codecrafters CLI test command

**URL:** <https://forum.codecrafters.io/t/unable-to-run-codecrafters-cli-test-command/10281>\
**Category:** Challenges\
**Created:** [May 10, 2025, 11:04am UTC](https://forum.codecrafters.io/t/unable-to-run-codecrafters-cli-test-command/10281 "2025-05-10T11:04:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShubhamSharma3901](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/shubhamsharma3901/32/9859_2.png) [@ShubhamSharma3901](https://forum.codecrafters.io/u/ShubhamSharma3901)\
**Post date:** [May 10, 2025, 11:04am UTC](https://forum.codecrafters.io/t/unable-to-run-codecrafters-cli-test-command/10281/1 "2025-05-10T11:04:27Z")

</div>

❯ codecrafters test  
create temp branch: add all files: fatal: not a git repository (or any of the parent directories): .git

I am getting this error and unable to use the test command

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 11, 2025, 2:09am UTC](https://forum.codecrafters.io/t/unable-to-run-codecrafters-cli-test-command/10281/4 "2025-05-11T02:09:47Z")

</div>

Hey @ShubhamSharma3901, it looks like the command was run in a folder that’s either not a valid Git repository or is missing the .git directory.

Could you share a screenshot of your terminal showing the folder where you ran the command?

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 18, 2025, 8:33am UTC](https://forum.codecrafters.io/t/unable-to-run-codecrafters-cli-test-command/10281/6 "2025-05-18T08:33:22Z")

</div>

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [May 23, 2025, 8:33am UTC](https://forum.codecrafters.io/t/unable-to-run-codecrafters-cli-test-command/10281/7 "2025-05-23T08:33:29Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
