用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill linode-cli命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | linode-cli |
| description | Linode CLI Documentation |
The official command-line interface for Linode/Akamai cloud infrastructure. Provides easy access to Linode API endpoints directly from the terminal for managing compute instances, Kubernetes clusters, volumes, networking, DNS, and more.
This skill should be triggered when:
linode-cli <resource> <action> [options]# Install via pip
pip3 install linode-cli
# First-time configuration (interactive)
linode-cli configure
# Set API token via environment
export LINODE_CLI_TOKEN=your_api_token_here
# View all available commands
linode-cli --help
# View help for specific resource
linode-cli linodes --help
# View help for specific action
linode-cli linodes create --help
# List all available regions
linode-cli regions list
# List all available images
linode-cli images list
# List all Linodes on your account
linode-cli linodes list
# List domains
linode-cli domains list
# List volumes
linode-cli volumes list
# List Kubernetes clusters
linode-cli lke clusters-list
# Format output with custom fields
linode-cli linodes list --format "id,label,status,region"
# Output as JSON
linode-cli linodes list --json
# Output all available fields
linode-cli linodes list --all
# Create a basic Linode (uses defaults from config)
linode-cli linodes create \
--type g6-standard-2 \
--region us-east \
--image linode/debian11 \
--label my-server \
--root_pass "SecurePassword123!"
# Create with specific configuration
linode-cli linodes create \
--type g6-standard-4 \
--region us-central \
--image linode/ubuntu22.04 \
--label production-web \
--root_pass "MySecurePass!" \
--group webservers
# Create with authorized SSH keys
linode-cli linodes create \
--type g6-standard-2 \
--region us-west \
--image linode/debian11 \
--label secure-server \
--root_pass "Password123!" \
--authorized_keys "ssh-rsa AAAAB3Nz..."
# Create a Kubernetes cluster with multiple node pools
linode-cli lke cluster-create \
--label my-k8s-cluster \
--region us-central \
--k8s_version 1.28 \
--node_pools.type g6-standard-4 --node_pools.count 3 \
--node_pools.type g6-standard-8 --node_pools.count 2 \
--tags production
# List all clusters
linode-cli lke clusters-list
# Update cluster configuration
linode-cli lke cluster-update $CLUSTER_ID \
--label renamed-cluster \
--tags production \
--tags monitoring \
--tags backup
# Update node pool size
linode-cli lke pool-update $CLUSTER_ID $POOL_ID \
--count 5
# Delete a cluster
linode-cli lke cluster-delete $CLUSTER_ID
# Create a domain
linode-cli domains create \
--type master \
--domain example.com \
--soa_email admin@example.com
# List domains
linode-cli domains list
# Create DNS record
linode-cli domains records-create $DOMAIN_ID \
--type A \
--name www \
--target 192.0.2.1
# Delete a domain
linode-cli domains delete $DOMAIN_ID
# Create a Block Storage volume
linode-cli volumes create \
--label my-volume \
--size 100 \
--region us-east
# List volumes
linode-cli volumes list
# Attach volume to Linode
linode-cli volumes attach $VOLUME_ID \
--linode_id $LINODE_ID
# Detach volume
linode-cli volumes detach $VOLUME_ID
# Filtering output with jq (requires jq installed)
linode-cli linodes list --json | jq '.[] | select(.status=="running")'
# Using variables in scripts
LINODE_ID=$(linode-cli linodes list --json | jq -r '.[0].id')
echo "First Linode ID: $LINODE_ID"
# Bulk operations example
for region in us-east us-west eu-central; do
linode-cli linodes create \
--type g6-nanode-1 \
--region $region \
--image linode/alpine3.18 \
--label "test-$region" \
--root_pass "TempPassword123!"
done
This skill includes comprehensive documentation in references/:
Use view to read specific reference files when detailed information is needed.
pip3 install linode-cli and configure with linode-cli configure--help flag extensively to discover available commandslinode-cli linodes list--json, --format, and --all flags for scriptingLINODE_CLI_TOKEN for non-interactive automationlinode-cli --help to see all available resource types--help on any action to see required and optional parameters--json to see all available fields for any resourcelinode-cli regions list before creating resources# Method 1: Interactive configuration
linode-cli configure
# Method 2: Environment variable
export LINODE_CLI_TOKEN=your_token_here
# Method 3: Config file (~/.config/linode-cli)
[DEFAULT]
token = your_token_here
region = us-east
type = g6-standard-2
image = linode/ubuntu22.04
# Create → Boot (automatic) → Use → Power off → Delete
linode-cli linodes create --label test --type g6-nanode-1 --region us-east --image linode/alpine3.18 --root_pass "Test123!"
# Get ID from output or list
LINODE_ID=$(linode-cli linodes list --json | jq -r '.[] | select(.label=="test") | .id')
# Shutdown
linode-cli linodes shutdown $LINODE_ID
# Delete
linode-cli linodes delete $LINODE_ID
#!/bin/bash
set -e # Exit on error
# Configuration
REGION="us-central"
TYPE="g6-standard-2"
IMAGE="linode/debian11"
# Create instance
echo "Creating Linode..."
RESULT=$(linode-cli linodes create \
--type "$TYPE" \
--region "$REGION" \
--image "$IMAGE" \
--label "auto-server-$(date +%s)" \
--root_pass "$(openssl rand -base64 32)" \
--json)
# Extract ID
LINODE_ID=$(echo "$RESULT" | jq -r '.[0].id')
echo "Created Linode ID: $LINODE_ID"
# Wait for running status
while true; do
STATUS=$(linode-cli linodes view $LINODE_ID --json | jq -r '.[0].status')
echo "Status: $STATUS"
[[ "$STATUS" == "running" ]] && break
sleep 5
done
echo "Linode is ready!"
.env files (git-ignored)--debug flag for detailed error information--json --pretty to see full API responsesview commands to inspect resource details# Verify token is set
echo $LINODE_CLI_TOKEN
# Test authentication
linode-cli account view
# Reconfigure CLI
linode-cli configure
# Check CLI version
linode-cli --version
# View debug information
linode-cli linodes list --debug
# Check configuration
cat ~/.config/linode-cli
--help for the most current command documentationTo stay current with Linode CLI:
# Update via pip
pip3 install --upgrade linode-cli
# Check for new features
linode-cli --help
# Review changelog
pip3 show linode-cli
The CLI is regularly updated to reflect changes in the Linode API. Check the GitHub repository for release notes and breaking changes.