init_fluent_app
Initialize a new Fluent SDK app or convert an existing ServiceNow scoped application. Specify intent for creation or conversion, with support for templates, auth, and empty working directory.
Instructions
Initialize a new Fluent (ServiceNow SDK) application or convert an existing scoped application. Set intent to "creation" for a new app (requires appName, packageName, scopeName, template) or "conversion" to convert from an instance sys_id or local directory (requires from, and auth for instance conversion). The workingDirectory must be an empty directory. After init, use build_fluent_app to compile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | For conversion only: credential alias for authentication with instance (auto-injected from session if not provided) | |
| from | No | For conversion: sys_id of the sys_app record or local file path to convert from | |
| debug | No | Print debug output | |
| intent | No | Specify your intent: "conversion" to convert an existing scoped app to Fluent, or "creation" to create a new scoped app. If omitted it is inferred — "conversion" when from is set, "creation" when appName, packageName or scopeName is set. Supply it explicitly when none of those are present. | |
| appName | No | For creation: The name of the application. | |
| template | No | For creation only (required): Template to use for the project. Choices: "base", "javascript.basic", "javascript.react", "typescript.basic", "typescript.react", "typescript.vue". Not needed for conversion. | |
| scopeName | No | For creation: The scope name for the application in x_<scope_name> format. Must start with 'x_' prefix. No spaces allowed, no greater than 18 characters. | |
| packageName | No | For creation: The NPM package name for the application, usually it's the snake-case of appName in lowercase with company prefix. | |
| workingDirectory | Yes | The directory where the Fluent (ServiceNow SDK) application will be created. Must be an empty local directory with no package.json or now.config.json files. |