# How to get complete info about 'bake'?

**URL:** <https://discourse.cakephp.org/t/how-to-get-complete-info-about-bake/6419>\
**Category:** Plugins\
**Tags:** translation\
**Created:** [July 28, 2019, 9:39am UTC](https://discourse.cakephp.org/t/how-to-get-complete-info-about-bake/6419 "2019-07-28T09:39:05Z")\
**Posts on this page:** 3\
**Page:** 1

<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 28, 2019, 9:39am UTC](https://discourse.cakephp.org/t/how-to-get-complete-info-about-bake/6419/1 "2019-07-28T09:39:05Z")

</div>

The cookbook ([https://book.cakephp.org/bake/1.x/en/usage.html](https://book.cakephp.org/bake/1.x/en/usage.html)) seems to be rather short about ‘bake’.

Can’t get clear how some things (have to) work ( [Bake not generating 100% new model-files?](https://discourse.cakephp.org/t/bake-not-generating-100-new-model-files/6265/3) ).

Googling around found you can use an additional parameter to set display-field,  
‘cake bake model Performers --display-field performer’.

I guess there’s more to know about ‘bake’, but where can I find that info. Did a lot of googling in trying to find out, but with no success. Last resort would be reading the code, but I’m afraid that won’t help me either.

---

<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:** [July 28, 2019, 10:09am UTC](https://discourse.cakephp.org/t/how-to-get-complete-info-about-bake/6419/2 "2019-07-28T10:09:44Z")

</div>

in terminal you can use `--help` for i think all commands i.e

```auto
$ bin/cake bake model --help
Bake table and entity classes.

Usage:
cake bake model [subcommand] [options] [<name>]

Subcommands:

all Bake all model files with associations and validation.

To see help on a subcommand use `cake bake model [subcommand] --help`

Options:

--connection, -c The datasource connection to get data from.
                       (default: default)
--display-field The displayField if you would like to choose one.
--fields A comma separated list of fields to make
                       accessible.
--force, -f Force overwriting existing files without
                       prompting.
--help, -h Display this help.
--hidden A comma separated list of fields to hide.
--no-associations Disable generating associations.
--no-entity Disable generating an entity class.
--no-fields Disable generating accessible fields in the
                       entity.
--no-fixture Do not generate a test fixture skeleton.
--no-hidden Disable generating hidden fields in the entity.
--no-rules Disable generating a rules checker.
--no-table Disable generating a table class.
--no-test Do not generate a test case skeleton.
--no-validation Disable generating validation rules.
--plugin, -p Plugin to bake into.
--primary-key The primary key if you would like to manually set
                       one. Can be a comma separated list if you are
                       using a composite primary key.
--quiet, -q Enable quiet output.
--table The table name to use if you have
                       non-conventional table names.
--theme, -t The theme to use when baking code.
                       (choices:
                       Bake|Migrations|WyriHaximus/TwigView)
--verbose, -v Enable verbose output.

Arguments:

name Name of the model to bake (without the Table suffix). You can use
      Plugin.name to bake plugin models. (optional)

Omitting all arguments and options will list the table names you can
generate models for

```

---

<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 29, 2019, 8:43am UTC](https://discourse.cakephp.org/t/how-to-get-complete-info-about-bake/6419/3 "2019-07-29T08:43:47Z")

</div>

Thanks, that’s the info I was looking for.

Did use cake -h and cake bake -h, now I’m just wondering why it didn’t occur to me to check the next level.
