# CakePhp 4.0.1 - bake do not know anymore --prefix option

**URL:** <https://discourse.cakephp.org/t/cakephp-4-0-1-bake-do-not-know-anymore-prefix-option/7025>\
**Category:** Testing\
**Created:** [December 24, 2019, 8:59am UTC](https://discourse.cakephp.org/t/cakephp-4-0-1-bake-do-not-know-anymore-prefix-option/7025 "2019-12-24T08:59:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fred2ric](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fred2ric](https://discourse.cakephp.org/u/fred2ric)\
**Post date:** [December 24, 2019, 8:59am UTC](https://discourse.cakephp.org/t/cakephp-4-0-1-bake-do-not-know-anymore-prefix-option/7025/1 "2019-12-24T08:59:19Z")

</div>

Hi everyone,

testing CakePhp 4.0.1, I 'm facing errors using bake (cake bake all -f --prefix test countries) : bake stop and throw “Error: Unknown option `prefix`.”

Did someone encountered the same problem ?

Thx

---

<div class="post-metadata">

**Author:** ![Graziel](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Graziel](https://discourse.cakephp.org/u/Graziel)\
**Post date:** [December 28, 2019, 1:56pm UTC](https://discourse.cakephp.org/t/cakephp-4-0-1-bake-do-not-know-anymore-prefix-option/7025/2 "2019-12-28T13:56:55Z")

</div>

seems like its on TODO list

> <https://github.com/cakephp/bake/issues/598>
>
> Add bake all --prefix X option to quickly bake prefixed controllers/templates.

---

<div class="post-metadata">

**Author:** ![fred2ric](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fred2ric](https://discourse.cakephp.org/u/fred2ric)\
**Post date:** [December 30, 2019, 9:27am UTC](https://discourse.cakephp.org/t/cakephp-4-0-1-bake-do-not-know-anymore-prefix-option/7025/3 "2019-12-30T09:27:25Z")

</div>

Thx !!! I will wait to go on with my tests…

---

<div class="post-metadata">

**Author:** ![drtrppr](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/drtrppr/32/1763_2.png) [@drtrppr](https://discourse.cakephp.org/u/drtrppr)\
**Post date:** [July 4, 2020, 9:44am UTC](https://discourse.cakephp.org/t/cakephp-4-0-1-bake-do-not-know-anymore-prefix-option/7025/4 "2020-07-04T09:44:27Z")

</div>

Wanted to use --prefix in 4.x, got error and found this message. Thought used the --prefix in 3.x, but not sure anymore (guess it did because it’s in the book, but doesn’t show in ‘cake bake --help’)

If so, label ‘enhancement’ is ok?

What’s the easiest workaround (now just make new project, but don’t like switching between projects. Moving the new project in a dir under original project will give routing issues which the prefix took care of?)
