Content SDK initializer parameters
This topic lists all valid parameters you can include when using npx to initialize a local Content SDK application. Using them will reduce the number of questions you're asked while running the Content SDK initializer.
Main parameters
All of these parameters are optional, but using them lets you quickly create apps based on common settings without having to answer all the standard questions during the initialization process.
All of these parameters accept string values.
|
Parameter |
Description |
|---|---|
|
|
Path or directory for the new application. If you provide a path that already contains files, the initializer will warn you and confirm that you want to proceed. If you proceed, it will overwrite the files in the destination. Default: |
|
|
Choose between static site generation (SSG) and server-side rendering (SSR). Default: |
For example, if you use the following command, you won't be prompted to choose a prerender method while initializing your app:
npx create-content-sdk-app@latest nextjs --prerender=SSROptional parameters
These optional parameters can be added to your npx command to modify the Content SDK app initialization process, based on your preferences.
These parameters do not take a value. Including one of them will apply an effect as described in the following table.
|
Parameter |
Effect when included |
|---|---|
|
|
Skips all initializer questions related to file system operations, choosing the default option for each. |
|
|
Hides all log messages while the initializer is running. |
|
|
Skips all initializer questions related to CLI argument values, choosing the default option for each. |