Using the CLI

Updated at:

Query protection statistics, asset distribution, and risk alerts in the terminal with Alibaba Cloud Bailian CLI.

Alibaba Cloud Bailian CLI packages security protection queries into commands for use in the terminal or by Agents. Complete installation and authentication first, see Installation and Authentication.

Prerequisites

Commands

CapabilityCommandDescription
Protection Overviewbl agents security overviewQuery protection statistics and asset distribution
Alert Listbl agents security alertsQuery risk and log details of all Agents under the account

Examples

Query the overview

bl agents security overview

Query high-risk alerts

bl agents security alerts --risk-level high

NoteThe overview queries protection statistics and asset distribution for the fixed last-24-hour window. The alerts command lists existing risk and log details filtered by high. These queries do not activate or configure protection or start a new code scan. An empty result does not certify safety; consider the statistics scope and alert logs.

Append --help to any command for full parameter descriptions. See Security command reference for more.

Next steps