获取有关 ohpm 的帮助。
执行以下命令:
ohpm -h
结果示例:
Usage: ohpm [command] [options]
Options:
-v, --version output the ohpm version
-h, --help display help for command
Commands:
config Manage the ohpm configuration file
info Display the information about a package
init Create an oh-package.json5 file
install Install package(s)
list Display the dependency graph
ping Test the network connectivity to registry
prepublish Pre-verification package content
publish Publish a package to the registry
uninstall Uninstall package(s)
unpublish Unpublish a package from target registry
update Update package(s) to their latest version based on the specified range
root Print the effective oh_modules folder to standard out
version Bump a package version
cache Manage the ohpm cache folder
run Run user defined package scripts, the optional parameter 'args' is used to append
or override script parameters in the form '(-key/--key value), (-key/--key=value), (-key/--key=a=b)'
clean Delete all 'oh_modules' directories and the 'oh-package-lock.json5' file in the current project
dist-tags Manage version tags of package
convert Convert all the packages to the ohpm packages
help display help for command