You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`version`| Get ServiceNow SDK version information | None |
32
32
|`help`| Get help information about ServiceNow SDK commands |`command`: (Optional) The specific command to get help for |
33
-
|`debug`| Enable debug mode for ServiceNow SDK commands |`command`: The command to run with debug mode enabled |
34
33
|`upgrade`| Upgrade ServiceNow SDK to the latest version |`check`: (Optional) Only check for updates without upgrading, `debug`: (Optional) Enable debug - **disabled for now**|
35
34
|`auth`| Authenticate to a ServiceNow instance |`add`: (Optional) Instance URL to add, `type`: (Optional) Authentication method, `alias`: (Optional) Alias for the instance |
36
35
|`init`| Initialize a new ServiceNow application |`from`: (Optional) sys_id or path, `appName`: App name, `packageName`: Package name, `scopeName`: Scope name, `auth`: (Optional) Authentication alias |
description='Generate shell command to manage Fluent (ServiceNow SDK) authentication to <instance_url> with credential profiles, including create new auth alias, list /show existing ones, delete or use an existing one';
11
+
name='manage_fluent_auth';
12
+
description='Manage Fluent (ServiceNow SDK) authentication to instance with credential profiles, use this to add, list, delete, or switch between authentication profiles';
Copy file name to clipboardExpand all lines: src/tools/commands/initCommand.ts
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -13,44 +13,44 @@ import logger from '../../utils/logger.js';
13
13
* Implements the init command with validation of prerequisites
14
14
*/
15
15
exportclassInitCommandextendsBaseCLICommand{
16
-
name='prepare_fluent_init';
17
-
description="Generate the Shell command to initialize a Fluent (ServiceNow SDK) application: If specified working directory has no Fluent (ServiceNow SDK) application, it will create a new one. If it has a Fluent (ServiceNow SDK) application, it will save the directory as the working directory for future commands, including build, install, transform and dependencies.\nWhen converting an existing ServiceNow application, use the 'from' argument to specify the system ID or path to initialize from. \nNote, if the specified directory has no package-lock.json file, run `npm install` first.\nNote, This command will not execute the initialization but prepare the shell command to be run later.";
16
+
name='init_fluent_app';
17
+
description='Initialize a new ServiceNow custom application or convert a legacy ServiceNow application from an instance or directory within the current directory';
18
18
arguments: CommandArgument[]=[
19
19
{
20
20
name: 'from',
21
21
type: 'string',
22
22
required: false,
23
-
description: 'convert existing scoped app to Fluent by sys_id or path to initialize from',
23
+
description: 'convert existing scoped app to Fluent by sys_id or file path to initialize from',
24
24
},
25
25
{
26
26
name: 'appName',
27
27
type: 'string',
28
28
required: true,
29
-
description: 'The name of the application, this is the user friendly name that will be displayed in ServiceNow UI.',
29
+
description: 'The name of the application.',
30
30
},
31
31
{
32
32
name: 'packageName',
33
33
type: 'string',
34
34
required: true,
35
-
description: "The NPM package name for the application, usually it's the snake-case of appName in lowercase.",
35
+
description: "The NPM package name for the application, usually it's the snake-case of appName in lowercase with company prefix.",
36
36
},
37
37
{
38
38
name: 'scopeName',
39
39
type: 'string',
40
40
required: true,
41
-
description: "The scope name for the application in <prefix>_<scope_name> format. For localhost development, it should be in the format of 'sn_<scope_name>'. This is required to create a new Fluent (ServiceNow SDK) application, no spaces allowed.",
41
+
description: "The scope name for the application in <prefix>_<scope_name> format. For localhost development, it should be in the format of 'sn_<scope_name>'. No spaces allowed, no greater than 18 characters.",
42
42
},
43
43
{
44
44
name: 'auth',
45
45
type: 'string',
46
46
required: false,
47
-
description: "The authentication alias to use. If not provided, the default authentication alias will be used. You can set up authentication using the 'auth' command.",
47
+
description: "The authentication alias to use. If not provided, the default authentication alias will be used. You can set up authentication using the 'manage_fluent_auth' tool.",
48
48
},
49
49
{
50
50
name: 'workingDirectory',
51
51
type: 'string',
52
52
required: false,
53
-
description: "The directory where the Fluent (ServiceNow SDK) application will be created. If not provided, a new directory will be created in the user's home directory.",
53
+
description: "The directory where the Fluent (ServiceNow SDK) application will be created. If not provided, a new directory will be created in the project root if exists or the user's home directory.",
0 commit comments