--- title: Commands installed with CMDB Application CLI and API description: Commands and command groups available to the ServiceNow CLI when the app-cmdb-api-cli plugin is installed. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/application-development/servicenow-cli/cmdb-cli-commands.html release: australia product: ServiceNow CLI classification: servicenow-cli topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 17 breadcrumb: [ServiceNow CLI, Building low-code applications, Developing your application, Building applications] --- # Commands installed with CMDB Application CLI and API Commands and command groups available to the ServiceNow CLI when the app-cmdb-api-cli plugin is installed. ## Request apps on the Store Visit the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/home) to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the [ServiceNow Store version history release notes](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html). To script critical operations which support automation across the enterprise, you can leverage APIs or run command line operations that the CMDB Application CLI and API store app provide instead of using the user interface. The CMDB Application CLI and API store app provides a robust framework which consolidates all the APIs that are related to application services and the command lines that let you access the interface to those APIs. CMDB Application CLI and API commands enable the following tasks: - Registering and creating an application service and establishing upstream relationships - Getting details of a given application service and its upstream relationships - Connecting higher level constructs such as business applications and business service offerings - Populating an application service with a given population type - Changing the state of an application service For the REST API solution, see [SG Services API](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/sg_services-api.md). ## Convert Application Service Converts a manual or empty type application service to a calculated application service. During conversion, the application service record moves into the \[cmdb\_ci\_service\_calculated\] table with the newly assigned class. Command group: - Parent group: service-graph - Child group: app-service - **Roles required** app\_service\_admin If using a service mapping related service, the user must have the required roles for that service mapping related service. - **Command structure for Mac OS** ``` snc service-graph app-service convert --data '{JSON}' ``` - **Command structure for Windows OS** ``` snc service-graph app-service convert --data "{JSON}" ``` - **Arguments** This command passes a JSON object using the **data** parameter. The following properties for identifying a CI take precedence as follows: 1. sys\_id – If sys\_id, the system only uses the sys\_id and ignores any additional values. 2. number – If provided without the sys\_id, the system only uses the number and ignores any additional values. 3. <IRE field name> – The system only uses these values if the sys\_id or number are not provided.
| Name | Description |
|---|---|
| <IRE field name> | One or more IRE fields identifying the application service. For example, name or version. Data type: String |
| levels | Number of levels to include in the conversion.Data type: String |
| number | Unique number that identifies the application service. Data type: String |
| sys\_id | Sys\_id of the application service.Data type: String |
| Name | Description |
|---|---|
| child |
Information identifying the child application service with which to create a relationship. The child is located in the Service Instance \[cmdb\_ci\_service\_auto\] table.A dynamic CI group can be added as a child but cannot be parent.
Data type: Object
```
"child": {
" |
| child.<IRE field name> | One or more IRE fields identifying the child application service. For example, name or version.Data type: String |
| child.number | Unique number that identifies the child application service.Data type: String |
| child.sys\_id | Sys\_id of the child application service listed in the Service Instance \[cmdb\_ci\_service\_auto\].Data type: String |
| parent |
Details identifying the parent application service with which to create a relationship.Data type: Object
```
"parent": {
" |
| parent.<IRE field name> | One or more IRE fields identifying the application service. For example, name or version.Data type: String |
| parent.number | Unique number that identifies the application service.Data type: String |
| parent.sys\_id | Sys\_id of the application service listed in the Service Instance \[cmdb\_ci\_service\_auto\].Data type: String |
| parent.class\_name | Name of the class that contains the application service.The parent class name should be from one of the following tables: - cmdb\_ci\_service\_auto - cmdb\_ci\_service\_discovered - cmdb\_ci\_service\_by\_tags - cmdb\_ci\_service\_calculated - service\_offering - cmdb\_ci\_business\_app Default: cmdb\_ci\_service\_auto Data type: String |
| Name | Description |
|---|---|
| <IRE field name> | One or more IRE fields identifying the application service. For example, name or version. Data type: String |
| number | Unique number that identifies the application service. Data type: String |
| sys\_id | Sys\_id of the application service listed in the Service Instance \[cmdb\_ci\_service\_auto\] table. Data type: String |
| Name | Description |
|---|---|
| child |
Information describing the child relationship to be deleted from the service application.Data type: Object
```
"child": {
" |
| child.<IRE field name> | One or more IRE fields identifying the child application service. For example, name or version.Data type: String |
| child.number | Unique number that identifies the child application service.Data type: String |
| child.sys\_id | Sys\_id of the child application service listed in the Service Instance \[cmdb\_ci\_service\_auto\].Data type: String |
| parent |
Details identifying the parent application service from which to remove a relationship.Data type: Object
```
"parent": {
" |
| parent.<IRE field name> | One or more IRE fields identifying the application service. For example, name or version.Data type: String |
| parent.number | Unique number that identifies the application service.Data type: String |
| parent.sys\_id | Sys\_id of the application service listed in the Service Instance \[cmdb\_ci\_service\_auto\] table. Data type: String |
| parent.class\_name | Name of the class that contains the application service.The parent class name should be from one of the following tables: - cmdb\_ci\_service\_auto - cmdb\_ci\_service\_discovered - cmdb\_ci\_service\_by\_tags - cmdb\_ci\_service\_calculated - service\_offering - cmdb\_ci\_business\_app Default: cmdb\_ci\_service\_auto Data type: String |
| Name | Description |
|---|---|
| <IRE field name> | One or more IRE fields identifying the application service. For example, name or version. Data type: String |
| number | Unique number that identifies the application service. Data type: String |
| sys\_id | Sys\_id of the application service listed in the Service Instance \[cmdb\_ci\_service\_auto\] table. Data type: String |
| Name | Description |
|---|---|
| <IRE field name> | One or more IRE fields identifying the application service. For example, name or version. Data type: String |
| number | Unique number that identifies the application service. Data type: String |
| population\_method | Required. Identifies the population method and its accompanying property to identify the content for population.Only one accompanying object is valid per type. Data type: Object |
| population\_method.group\_id | Group ID of the CMDB group configured with the cmdb\_group population type.Data type: "String" ``` "population_method": { "group_id": "String", "type": "cmdb_group" } ``` Associated population type: cmdb\_group |
| population\_method.levels | Number of levels to use in building the service. If the level value is not provided, the system checks the sys\_property for the value. If svc.manual.convert.levels.default\_value is not populated, a default value of 3 is used.Data type: Number ``` "population_method": { "levels": Number, "type": "dynamic_service" } ``` Associated population type: dynamic\_service Default: 3 if no level value is set for the sys\_property |
| population\_method.service\_candidate | Unique identifier of the service candidate. Data type: String ``` "population_method": { "service_candidate": "String", "type": "tag_based_service_family" } ``` Associated population type: tag\_based\_service\_family |
| population\_method.service\_relations | List of objects containing hierarchy data for the CIs within the application service. All CIs form pairs with a parent and child CI. The top-level CI, referred to as the entry point of an application service, does not have a parent CI.Data type: Array ``` "population_method": { "service_relations":[ { "child": "String", "parent": "String" } ], "type": "service_hierarchy" } ``` Associated population type: service\_hierarchy |
| population\_method.service\_relations.child | Name of a child CI related to the CI.Data type: String |
| population\_method.service\_relations.parent | Name of a parent CI related to the CI.Data type: String |
| population\_method.tags | List of objects containing tags to associate with the CI. This information is located in the Key Values \[cmdb\_key\_value\] table.Data type: Array ``` "population_method": { "tags": [ { "tag": "String", "value": "String" } ], "type": "tag_list" } ``` Associated population type: tag\_list |
| population\_method.tags.tag | Tag name.Data type: String |
| population\_method.tags.value | Tag value.Data type: String |
| population\_method.type | Required. Population type to add to the application service.Data type: Object Valid values: - cmdb\_group - service\_hierarchy - dynamic\_service - tag\_list - tag\_based\_service\_family |
| sys\_id | Sys\_id of the application service listed in the Service Instance \[cmdb\_ci\_service\_auto\] table. Data type: String |
| Name | Description |
|---|---|
| <IRE field name> | One or more IRE fields identifying the application service. For example, name or version. Data type: String |
| number | Unique number that identifies the application service. Data type: String |
| relationships | Upstream relationships categorized by type.Data type: Object ``` "relationships": { "business_app": [Array], "business_service_offering": [Array], "parent_app_service": [Array], "technical_service_offering": [Array] } ``` Maximum number of relationships is 25. |
| relationships.business\_app | List of objects representing Business Application relationship types. These values can be defined using one of the following items as key-value pairs. - <IRE field name> - number - sys\_id Data type: Array |
| relationships.business\_service\_offering | List of objects representing Business Service Offering relationship types. These values can be defined using the following items as key-value pairs. - <IRE field name> - number - sys\_id Data type: Array |
| relationships.parent\_app\_service | List of objects representing Application Service relationship types. These values can be defined using the following items as key-value pairs. - <IRE field name> - number - sys\_id Data type: Array |
| relationships.technical\_service\_offering | List of objects representing technology management offering \(formerly technical service offering\)relationship types. These values can be defined using the following items as key-value pairs. - <IRE field name> - number - sys\_id Data type: Array |
| sys\_id | Sys\_id of the application service listed in the Service Instance \[cmdb\_ci\_service\_auto\] table. Data type: String |
| tags | List of objects containing tag definitions as key-value pairs.``` "tags": [ { "key": "String", "value": "String" }] ``` Data type: Array |
| tags.key | Tag category name.Data type: String |
| tags.value | Tag value.Data type: String |
| Name | Description |
|---|---|
| <fields or tags to update> | Use key-value pairs to identify each field or tag to be updated.Only basic information can be updated, no upstream relationships can be updated. Data type: String |
| <IRE field name> | One or more IRE fields identifying the application service. For example, name or version.Data type: String |
| number | Unique number that identifies the application service.Data type: String |
| sys\_id | Sys\_id of the application service listed in the Service Instance \[cmdb\_ci\_service\_auto\].Data type: String |
| Name | Description |
|---|---|
| <IRE field name> | One or more IRE fields identifying the application service. For example, name or version.Data type: String |
| number | Unique number that identifies the application service.Data type: String |
| state | Required. Lifecycle state of the application service. These values are updated in the Service Instance \[cmdb\_ci\_service\_auto\] table.Valid values: - ACTIVATE – Life cycle is operational and in use. - operational\_status=Operational - life\_cycle\_stage=Operational - life\_cycle\_stage\_status=In Use - DEACTIVATE – Life cycle is not operational and is in the design stage. - operational\_status=Non-Operational - life\_cycle\_stage=Design - life\_cycle\_stage\_status=Build - RETIRE – End of life. - operational\_status=Retired - life\_cycle\_stage=End Of Life - life\_cycle\_stage\_status=Retired Data type: String |
| sys\_id | Sys\_id of the application service listed in the Service Instance \[cmdb\_ci\_service\_auto\].Data type: String |