Strapi v3 generate:api equivalent in v4

We are working on updating the strapi version from v3 to v4 (currently in sandbox environment, so not really a migration).

Currently, we use strapi generate:api command to create an API/model (CLI - Strapi Developer Documentation) in v3. In v4, I see CLI - Strapi Developer Docs, but there is not much details. I would really appreciate any help on this.

example v3 command: strapi generate:api product name:string description:text price:integer

1 Like