<% if (isJekyll) { %>--- title: ns config set position: 3 ---<% } %>
Sets the value for a specific key in the project's NativeScript configuration.
| Usage | Synopsis |
|---|---|
| General | $ ns config set <key> <value> |
<key>— The configuration key in dot-notation. Examples:ios.id,android.codeCache,bundler.<value>— The value to set. Parsed as JSON when possible (e.g.true,42,{ "foo": "bar" }). Otherwise treated as a string.
$ ns config set ios.id org.nativescript.myapp$ ns config set android.codeCache true$ ns config set bundler vite
- Setting whole objects is not supported. Update individual keys instead. For example, use:
$ ns config set android.codeCache true
| Command | Description |
|---|---|
| config | Lists all configuration values for the current project. |
| config get | Prints the value for the specified configuration key. |
| <% } %> |