publish


The publish command perform the following tasks:

  • Publish the service model without viewing what is being published (default).
  • View the service model instances, including components, relationships, and management data instances that are marked for publishing.
  • Publish the entire service model or selected service model class instances and view a listing of the component, relationship, and management data instances being published.

publish syntax

publish <common options>
[-e EnvId] [-w [-o File] [-m]] [-s Description]

publish command options

The following table lists the options for the publish command.

No command options are required for the publish command.

publish command options

Options

Description

<common options>

-m

Publishes the service model class instances, including component, relationship, and management data instances, that you viewed (relevant only with the -w option)

-oOutputFile

Prints the service model class instances, including components, relationships, and management data, to be published to the specified output file (relevant only with the -w option)

-w

View the service model class instances marked for publishing

-sdescription

Describe request

-eenvironmentID

Publishes in environmentID. The default value is PROD.

publish examples

This section provides examples of using the publish command to view the service model class instances to be published (including components, relationships, and management data) and to publish them.

Publishing the service model without viewing it

To publish a service model without viewing the objects queued for publish, type the following command:

publish

Viewing the service model class instances to be published prior to publishing

To view the service model class instances that are queued for publishing, type the following command:

publish -w

Viewing what is queued to publish and then publishing the objects

To view and then publish the service model objects that are marked for publishing, type the following command:

publish -w -m

Publishing with hard deletions in CMDB

To remove the Configuration Items (CIs) that have been deleted in Configuration Management Database (CMDB), run the following command:

publish -p Purge=T

publish return codes

For information about CLI return codes, see Return-codes-for-Publishing-Server-CLIs.

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*