This topic describes how to install and configure the new Simple Log Service (SLS) command-line interface (CLI). Before you use the CLI, configure the credentials, region, and language settings required to access Alibaba Cloud resources.
Install the new SLS CLI
Method 1: Install by using Homebrew (macOS)
brew install aliyun-cli
aliyun plugin install --names slsMethod 2: Install by using a script (Linux and macOS)
sudo /bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"
aliyun plugin install --names slsNote
This method requires sudo privileges. The CLI is installed to /usr/local/bin/aliyun.
Verify the installation
Run the following commands to verify that the installation is successful:
aliyun version
aliyun sls versionExpected output:
aliyun-cli-sls 0.1.4 (5e628xxxx)