Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aliyun avatar

Alibabacloud Sls Cli Guidance

  • 114 installs
  • 8 repo stars
  • Updated June 30, 2026
  • aliyun/aliyun-sls-agent-skills

alibabacloud-sls-cli-guidance is a Claude skill that manages Alibaba Cloud SLS projects, logstores, indexes, log collection and queries using the aliyun CLI sls plugin.

About

This skill manages Alibaba Cloud SLS (Simple Log Service) resources using the aliyun CLI and its sls plugin. A developer uses it to create and manage projects, logstores, indexes, Logtail configs and machine groups, write logs, and query or SQL-analyze logs. It routes to per-operation reference files and includes a text-to-SQL path via SLS Copilot for natural-language log queries.

  • Manages Alibaba Cloud SLS projects, logstores, indexes and log queries via aliyun-cli
  • Covers Logtail pipeline configs, machine groups and put/query log operations
  • Includes text-to-SQL log analytics via SLS Copilot

Alibabacloud Sls Cli Guidance by the numbers

  • 114 all-time installs (skills.sh)
  • Ranked #546 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

alibabacloud-sls-cli-guidance capabilities & compatibility

Free skill; requires an Alibaba Cloud account with SLS (billed by Alibaba Cloud).

Capabilities
log management · log query · log collection · text to sql
Use cases
devops · data analysis
Platforms
macOS · Linux
Runs
Runs locally
Pricing
Bring your own API key
From the docs

What alibabacloud-sls-cli-guidance says it does

Command-line interface for managing Alibaba Cloud Simple Log Service (SLS) resources including projects, logstores, and log queries.
SKILL.md
Generate SQL from natural language via SLS Copilot
SKILL.md
npx skills add https://github.com/aliyun/aliyun-sls-agent-skills --skill alibabacloud-sls-cli-guidance

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs114
repo stars8
Last updatedJune 30, 2026
Repositoryaliyun/aliyun-sls-agent-skills

What it does

Manage Alibaba Cloud SLS projects, logstores, indexes, log collection and queries via the aliyun CLI.

Who is it for?

Managing SLS projects, logstores, log collection and queries through the aliyun CLI.

When should I use this skill?

You need to create or manage SLS projects, logstores, indexes, Logtail configs, or query logs.

What you get

SLS resources are managed and logs queried through the correct aliyun CLI sls subcommands and reference workflows.

By the numbers

  • 7 reference areas: project, logstore, index, query, put-logs, logtail, machine-group

Files

SKILL.mdMarkdownGitHub ↗

Aliyun SLS CLI

Command-line interface for managing Alibaba Cloud Simple Log Service (SLS) resources including projects, logstores, and log queries.

Prerequisites

Before starting, verify that aliyun-cli and sls plugin are installed:

aliyun version
aliyun sls version

Expected output: aliyun-cli-sls 0.1.0 (5e6288421) or similar

Installation (if not installed)

If the check fails, install aliyun-cli using one of these methods:

Option 1: Homebrew (macOS only)

brew install aliyun-cli
aliyun plugin install --names sls

Option 2: Official installer (Linux and macOS)

# This method requires sudo permission to install to `/usr/local/bin/aliyun`.
sudo /bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"
aliyun plugin install --names sls

Configuration

Configure access credentials (using AccessKey example) and region:

aliyun configure set \
  --access-key-id <access-key-id> \
  --access-key-secret <access-key-secret> \
  --region <region>

Region examples: cn-hangzhou, cn-shanghai, cn-beijing, us-west-1

IMPORTANT: If credentials or region are not provided by the user, request them explicitly before proceeding with any operations.

For other authentication methods(StsToken|RamRoleArn|EcsRamRole|...), check: aliyun configure set --help

Common Operations

Below lists frequently used SLS operations. Read the corresponding reference file first before executing any of them.

ReferenceRelated commandsDescription
projectlist-project create-project get-project update-project delete-projectManage SLS projects (create, list, update, delete)
logstorelist-log-stores create-log-store get-log-store update-log-store delete-log-storeManage logstores within a project
indexget-index create-index update-index delete-indexConfigure indexes to enable query and SQL analytics
query-logsget-logs-v2 get-histogramsQuery and analyze logs with search or SQL
put-json-logsput-json-logsWrite logs to a logstore
logtail-configcreate-logtail-pipeline-config update-logtail-pipeline-config get-logtail-pipeline-config list-logtail-pipeline-config delete-logtail-pipeline-configManage Logtail pipeline configs for log collection (file input, JSON/delimiter/regex parsing, multiline, time extraction)
machine-groupcreate-machine-group update-machine-group get-machine-group list-machine-group delete-machine-group apply-config-to-machine-group remove-config-from-machine-group get-applied-configsManage machine groups and apply Logtail configs to them
text-to-sqlcall-ai-toolsGenerate SQL from natural language via SLS Copilot

CLI Usage

Discover APIs

aliyun help sls
aliyun help sls <apiName>

Validate command syntax (dry-run)

Add --cli-dry-run to validate parameters without executing:

aliyun sls list-project --offset 0 --size 50 --cli-dry-run

Output format

All commands return JSON by default. Use --cli-query with JMESPath expressions to filter output:

aliyun sls list-project --cli-query "projects[*].name"

Global parameters

  • --cli-dry-run: Validate command without execution
  • --cli-query <jmespath>: Filter output with JMESPath
  • --region <region>: Override region
  • --help: Show command help

Rules

1. Do not use deprecated APIs — use the current replacement so behavior stays supported and predictable.

DeprecatedUse instead
get-logsget-logs-v2

2. Obtain explicit user approval before any delete — delete operations are irreversible. 3. Use `--cli-dry-run` first for destructive operations (delete, update). 4. Update APIs require full parameters — first call the corresponding Get API to retrieve current parameters, then include all meaningful parameters in the update call (including unchanged ones). Omitting parameters may reset them to defaults. 5. If a command fails: check required parameters with --cli-dry-run, verify credentials via aliyun configure list, read the error message, and compare your command with the corresponding reference file. If the sub-command is not recognized, upgrade the plugin via aliyun plugin update sls.

Related skills

Cloud & Infrastructuremonitoringinfra

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.