The invention discloses a method and a device for generating a
help document. The method comprises the following steps: recording an operation command corresponding to each deployment step in a
software deployment process; and for each operation command, identifying a
timestamp and a deployment result, the
timestamp of any one operation command being used for indicating a moment when the softwareexecutes the operation command, and the deployment result of any one operation command being used for indicating a result generated after the
software executes the operation command. If the deploymentresult of the operation command indicates that the current deployment step is executed successfully, it is determined that the operation command is a target operation command. And
natural language processing is performed on each target operation command in the command sequence to generate a
help document, and the command sequence is obtained by sorting each target operation command according to atimestamp. Compared with manual writing, the efficiency is high, errors are not prone to occurring, and the accuracy is high. Since the
help document is obtained through conversion based on the operation command, when
software deployment is carried out, the help document can be utilized to convert the corresponding operation command, and automatic deployment of the software is realized.