Shlink CLI for Openclaw

A command-line interface for managing Shlink URL shortener instances directly from your terminal.

parinll
v1.0.0
Mar 15, 2026
0
820
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install shlink-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install shlink-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Shlink CLI?

The Shlink CLI skill provides a robust interface for interacting with Shlink REST API v3, allowing developers and DevOps engineers to manage their link-shortening infrastructure programmatically. By integrating this into Openclaw Skills, users can automate the creation, tracking, and organization of shortened URLs without needing to access a web-based dashboard.

This tool is built in Go, ensuring high performance and easy installation across various environments while maintaining a secure connection to your private Shlink instance. It simplifies complex API interactions into human-readable commands, making it an essential utility for those hosting their own shortening services.

Shlink CLI Use Cases

  • Automating short URL generation for marketing campaigns and social media.
  • Bulk managing tags and categories for organized link tracking and segmenting.
  • Monitoring the health and performance of self-hosted Shlink instances through terminal commands.
  • Retrieving visit statistics and analytics for specific shortened links for reporting.
  • Troubleshooting connectivity or authentication issues with the Shlink API using debug logs.

How Shlink CLI Works

  1. The skill clones the source code from the official GitHub repository and builds the binary using the Go toolchain.
  2. Required environment variables for the instance URL and API key are configured to establish a secure connection.
  3. The user executes specific subcommands via the CLI to perform CRUD operations on URLs, manage tags, or inspect instance health.
  4. The CLI processes API responses and outputs formatted data, offering a specialized debug mode for granular visibility into the request lifecycle.

Shlink CLI Setup

To install and configure the Shlink CLI for Openclaw Skills, follow these steps:

# Clone the repository
git clone https://github.com/ParinLL/shlink-cli.git
cd shlink-cli

# Build the binary from source
go mod tidy
go build -o shlink-cli .

# Optional: Install globally to your system path
sudo install shlink-cli /usr/local/bin/

# Configure your environment variables
export SHLINK_BASE_URL="https://your-shlink-instance.example.com"
export SHLINK_API_KEY="your-api-key-here"

Shlink CLI Data Schema & Taxonomy

Element Details
Credentials Managed via SHLINK_BASE_URL and SHLINK_API_KEY environment variables.
Commands Organized into subcommands: short-url, health, and tag.
API Compatibility Designed specifically for Shlink REST API v3.
Output Formats Supports standard terminal output and machine-readable JSON via the --json flag.
Metadata Tracks slugs, long URLs, tags, and visit counts per link.

Shlink CLI Advanced Features

  • Support for Shlink REST API v3 features including domain-specific redirects.
  • Detailed health check command with structured JSON output for integration with monitoring stacks.
  • Global debug mode to trace network issues or permission errors during API calls.
  • Pagination and limit controls for managing large sets of short URLs efficiently.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*