The invention discloses a command line tool updating method and device. The method comprises the steps that whether or not a command line module corresponding to a command line tool under a target buffer route is the latest version is detected, under the target buffer route, no highest authority is needed during file modification, the command tool module is the portion, except an updating detection module and an updating installation module, in an installation package of the command line tool, and when the command line module is not the latest version, the command line module is updated to thelatest version. According to the technical scheme, after the command line tool is updated, command line tool developers do not need to inform command line tool users to update the command line tool one by one, no manual updating of the command line tool users is needed, the experience of the developers and the users is optimized, and it is ensured that the experience of the command line tool users can be consistent on the condition that the command line tool is rapidly updated.