<% if (isJekyll) { %>--- title: ns config position: 1 ---<% } %>
View and manage your project's NativeScript configuration stored in nativescript.config.(js|ts) (or legacy nsconfig.json).
| Usage | Synopsis |
|---|---|
| List all config | $ ns config |
| Get a value | $ ns config get <key> |
| Set a value | $ ns config set <key> <value> |
$ ns config— prints all configuration values.$ ns config get ios.id— prints the iOS bundle identifier.$ ns config set android.codeCache true— enables Android V8 code cache.
- Keys use dot-notation, for example:
ios.id,android.codeCache,bundler. - Values are parsed as JSON when possible. Use quotes for strings with spaces.
<% if(isHtml) { %>
| Command | Description |
|---|---|
| config get | Prints the value for the specified configuration key. |
| config set | Sets the value for the specified configuration key. |
| <% } %> |