# I have to call generate apollo-ios-cli for a new set of operations and different schema

**URL:** <https://community.apollographql.com/t/i-have-to-call-generate-apollo-ios-cli-for-a-new-set-of-operations-and-different-schema/7540>\
**Category:** Client SDKs\
**Tags:** client, ios\
**Created:** [May 21, 2024, 9:24pm UTC](https://community.apollographql.com/t/i-have-to-call-generate-apollo-ios-cli-for-a-new-set-of-operations-and-different-schema/7540 "2024-05-21T21:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/anil/32/4556_2.png) [@Anil](https://community.apollographql.com/u/Anil)\
**Post date:** [May 21, 2024, 9:24pm UTC](https://community.apollographql.com/t/i-have-to-call-generate-apollo-ios-cli-for-a-new-set-of-operations-and-different-schema/7540/1 "2024-05-21T21:24:03Z")

</div>

I already have made a codegen using apollo-ios-cli, now I want to generate code for a new set of operations with different schema.  
Do I have to modify the existing apollo-codegen-config.json or create a new one? If I have to create new one, how does the apollo-ios-cli know which file it has to use for ‘generate’?

---

<div class="post-metadata">

**Author:** ![calvincestari](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/calvincestari/32/339_2.png) [@calvincestari](https://community.apollographql.com/u/calvincestari)\
**Post date:** [May 21, 2024, 10:56pm UTC](https://community.apollographql.com/t/i-have-to-call-generate-apollo-ios-cli-for-a-new-set-of-operations-and-different-schema/7540/2 "2024-05-21T22:56:29Z")

</div>

Hi @Anil 👋 - if you want to be able to regenerate both at any time then a new codegen config file is the best approach, and to keep both with your project. I would give them names related to the schema for each.

The CLI `generate` command supports a [`--path` parameter](https://www.apollographql.com/docs/ios/code-generation/codegen-cli#generate) which lets you specify which config file should be used. By default, if you don’t specify `--path` then it looks for a file named `apollo-codegen-config.json `.
