# Initialize the code generation configuration Help

**URL:** <https://community.apollographql.com/t/initialize-the-code-generation-configuration-help/5808>\
**Category:** Client SDKs\
**Tags:** client, mobile, ios\
**Created:** [February 24, 2023, 4:20pm UTC](https://community.apollographql.com/t/initialize-the-code-generation-configuration-help/5808 "2023-02-24T16:20:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrKearns](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/mrkearns/32/3945_2.png) [@MrKearns](https://community.apollographql.com/u/MrKearns)\
**Post date:** [February 24, 2023, 4:20pm UTC](https://community.apollographql.com/t/initialize-the-code-generation-configuration-help/5808/1 "2023-02-24T16:20:15Z")

</div>

Hello,

I’m _extremely_ new to all of this. I’m trying to setup Apollo in a Swift project. I’m following along with the “getting started” but I’m not sure what to do with the Initialize the code generation configuration. I installed CLI… I think that worked. The next step is:

./apollo-ios-cli init --schema-name ${MySchemaName} --module-type ${ModuleType}

I’m not exactly sure what to do here. I’ve tried running this a few times, but get “missing value for schema name” or “bad substitution.” Any help is appreciated!

---

<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:** [February 25, 2023, 4:30am UTC](https://community.apollographql.com/t/initialize-the-code-generation-configuration-help/5808/2 "2023-02-25T04:30:20Z")

</div>

Hi @MrKearns - the surrounding `${ }` are meant to convey that those are values you need to provide and that they’re specific to your project.

- `$(MySchemaName}` should be the name of the schema or target, depending on what value you use for the module type.
- `${ModuleType}` specifies the type of module that you want to use for the schema types. Possible options are listed [here](https://www.apollographql.com/docs/ios/code-generation/codegen-cli#options-1).

So as a complete example here is a CLI `init` command where I am choosing to have the schema types configured as a Swift package named “GraphQLAPI” - `./apollo-ios-cli init --schema-name GraphQLAPI --module-type swiftPackageManager`.
