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.

Note

All of these parameters accept string values.

Parameter

Description

destination

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: <current-directory-path>/nextjs

prerender

Choose between static site generation (SSG) and server-side rendering (SSR).

Default: SSG

For example, if you use the following command, you won't be prompted to choose a prerender method while initializing your app:

RequestResponse
npx create-content-sdk-app@latest nextjs --prerender=SSR

Optional parameters

These optional parameters can be added to your npx command to modify the Content SDK app initialization process, based on your preferences.

Note

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

force

Skips all initializer questions related to file system operations, choosing the default option for each.

silent

Hides all log messages while the initializer is running.

yes

Skips all initializer questions related to CLI argument values, choosing the default option for each.

Do you have some feedback for us?

If you have suggestions for improving this article,