All Products
Search
Document Center

Simple Log Service:Install and configure the new SLS CLI

Last Updated:Jul 09, 2026

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 sls

Method 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 sls
Note

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 version

Expected output:

aliyun-cli-sls 0.1.4 (5e628xxxx)