# Cake bake Model

**URL:** <https://discourse.cakephp.org/t/cake-bake-model/7189>\
**Category:** Need Help\
**Created:** [January 29, 2020, 6:34am UTC](https://discourse.cakephp.org/t/cake-bake-model/7189 "2020-01-29T06:34:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy86](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sandy86](https://discourse.cakephp.org/u/sandy86)\
**Post date:** [January 29, 2020, 6:34am UTC](https://discourse.cakephp.org/t/cake-bake-model/7189/1 "2020-01-29T06:34:50Z")

</div>

Hi,  
I am using cakephp 4.

I have created a table with the name - item

When I run the command -  
cake bake Model item  
It gives an error -  
"Could not find a task named ‘Model’.This used to work with cakephp 3.7 but it is not working in cakephp 4. What is the problem here? Can some one help me

---

<div class="post-metadata">

**Author:** ![FinlayDaG33k](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/finlaydag33k/32/1049_2.png) [@FinlayDaG33k](https://discourse.cakephp.org/u/FinlayDaG33k)\
**Post date:** [January 29, 2020, 1:28pm UTC](https://discourse.cakephp.org/t/cake-bake-model/7189/2 "2020-01-29T13:28:32Z")

</div>

I think the command is `cake bake model` (note the lowercase `m`).

---

<div class="post-metadata">

**Author:** ![sandy86](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sandy86](https://discourse.cakephp.org/u/sandy86)\
**Post date:** [January 29, 2020, 2:00pm UTC](https://discourse.cakephp.org/t/cake-bake-model/7189/3 "2020-01-29T14:00:09Z")

</div>

Actually, the command(with capital M) was working till cakephp 3.7 but i guess in cakephp 4, it is strictly required to give lowercase m and it worked. Thanks a lot

---

<div class="post-metadata">

**Author:** ![FinlayDaG33k](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/finlaydag33k/32/1049_2.png) [@FinlayDaG33k](https://discourse.cakephp.org/u/FinlayDaG33k)\
**Post date:** [January 29, 2020, 2:06pm UTC](https://discourse.cakephp.org/t/cake-bake-model/7189/4 "2020-01-29T14:06:43Z")

</div>

I don’t know that for sure, I always make sure my capitalization is as described in the `help` output 😛  
That stuff just grew onto me while using Linux 😛

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [January 29, 2020, 4:46pm UTC](https://discourse.cakephp.org/t/cake-bake-model/7189/5 "2020-01-29T16:46:38Z")

</div>

Any chance you were using Windows previously and are now developing on Linux? That has been the cause of many a case-sensitivity issue.

---

<div class="post-metadata">

**Author:** ![sandy86](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sandy86](https://discourse.cakephp.org/u/sandy86)\
**Post date:** [January 30, 2020, 5:18am UTC](https://discourse.cakephp.org/t/cake-bake-model/7189/6 "2020-01-30T05:18:58Z")

</div>

No, I was using Windows previously and now as well.
