目录

ohpm ping

Pings the address of the ohpm repository.

Command Format

ohpm ping

Description

This command is used to ping a given or configured repository address. If the address is valid, related information is displayed as follows:

ohpm INFO: PING your_registry
ohpm INFO: PONG 255ms

Otherwise, error information is displayed as follows:

ohpm INFO: PING your_registry
ohpm ERROR: HttpCode 404, API ping in your_registry - Not Found

Options

[h2]registry

You can append the --registry <registry> parameter to the ohpm ping command to specify a repository address. If the parameter is not set, the repository address is obtained from the configuration by default.

[h2]fetch_timeout

You can append the --ft <number> or --fetch_timeout <number> parameter to the ohpm ping command to set the operation timeout. If the parameter is not set, the default timeout is 60000 ms.

[h2]strict_ssl

If no parameter is appended to the ohpm ping command, or the --strict_ssl or --strict_ssl true parameter is appended, HTTPS certificate verification is enabled.

In ohpm 26.0.0.630 and later versions, to disable verification, append --no-strict_ssl (recommended) or --strict_ssl false to the command.

[h2]log_level

In ohpm 6.0.2.636 and later versions, you can append the --log_level <string> parameter to the ohpm ping command to specify the log level (info, debug, warn, or error) for execution of the current command. If this parameter is not set, the log_level setting in the .ohpmrc file is applied.

[h2]debug

In ohpm 6.0.2.636 and later versions, you can append the --debug parameter to the command to set the log level to debug for execution of the current command. This configuration takes effect only on the current command line and does not alter the log level configured in the .ohpmrc file. If this parameter is not set, the log_level setting in the .ohpmrc file is applied.