Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

minio

БесплатноБез исполняемых скриптовНе проверен

Self-host S3-compatible object storage with MinIO. Use when a user asks to set up self-hosted object storage, create an S3-compatible API on their own server…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

MinIO

Overview

MinIO is an S3-compatible object storage server you can self-host. Any tool or SDK that works with AWS S3 works with MinIO: same API, same client libraries. Use it for file uploads, backup storage (restic, pg_dump), static asset hosting, and anywhere you'd use S3 but want the data on your own infrastructure.

Project status (checked October 2026): the community repository minio/minio is marked "THIS REPOSITORY IS NO LONGER MAINTAINED" (its README points to the commercial AIStor editions). Its last tagged release is RELEASE.2025-10-15T17-29-55Z, and the community edition is distributed as source only. The Docker Hub repositories minio/minio and minio/mc no longer serve anonymous pulls (every tag, including latest, is denied), so the repository Dockerfile (which starts FROM minio/minio:latest) cannot be built either. A server built from source works but gets no fixes, so for a new production deployment weigh that (and the AGPLv3 license) against MinIO's commercial AIStor edition or another S3-compatible server. The S3 usage in Steps 3 to 6 is the same on all of them.

Instructions

Step 1: Deployment

Build the server from source (Go 1.24 or newer) and run the binary; to run it in a container, wrap the binary in your own small image. Credentials come from the environment (8 characters minimum for the password).

# Build a static binary (it also runs in Alpine) into ./bin
CGO_ENABLED=0 GOBIN="$PWD/bin" go install github.com/minio/minio@latest

# Single node, ports bound to localhost only
export MINIO_ROOT_USER=minio-admin MINIO_ROOT_PASSWORD   # export the password from your secret store first
mkdir -p /srv/minio-data
./bin/minio server /srv/minio-data --address 127.0.0.1:9000 --console-address 127.0.0.1:9001

# Console UI: http://127.0.0.1:9001   API endpoint: http://127.0.0.1:9000
# Readiness: curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:9000/minio/health/ready   (200)

The same binary in a container:

# Dockerfile (next to the static ./minio binary)
FROM alpine:3
COPY minio /usr/bin/minio
VOLUME ["/data"]
ENTRYPOINT ["/usr/bin/minio"]
docker build -t myminio:local .
docker run -d --name minio -p 127.0.0.1:9000:9000 -p 127.0.0.1:9001:9001 \
  -v minio_data:/data -e MINIO_ROOT_USER=minio-admin -e MINIO_ROOT_PASSWORD="$MINIO_ROOT_PASSWORD" \
  myminio:local server /data --console-address ":9001"

Step 2: MinIO Client (mc)

# Install mc (MinIO Client CLI) from source (Go 1.24+); the mc repository is archived too
go install github.com/minio/mc@latest
mc --version

# Configure alias; the secret comes from the environment, not the command line
mc alias set local http://127.0.0.1:9000 "$MINIO_ROOT_USER" "$MINIO_ROOT_PASSWORD"
mc ready local                     # prints: The cluster 'local' is ready

# Bucket operations
mc mb local/uploads                # create bucket
mc mb local/backups
mc ls local                        # list buckets
mc ls local/uploads                # list objects

# Upload/download
mc cp file.txt local/uploads/      # upload file
mc cp local/uploads/file.txt .     # download file
mc cp -r ./data/ local/uploads/    # upload directory recursively

# Sync (like rsync for S3)
mc mirror ./local-dir local/uploads/     # sync local → MinIO (source must be a folder)
mc mirror local/uploads/ ./local-dir     # sync MinIO → local

# Remove
mc rm local/uploads/file.txt
mc rm -r --force local/uploads/old/      # remove recursively

Step 3: S3 SDK Integration (Node.js)

// lib/storage.js — S3-compatible client for MinIO
// Uses the standard AWS SDK — works with both MinIO and AWS S3
import { S3Client, PutObjectCommand, GetObjectCommand, DeleteObjectCommand } from '@aws-sdk/client-s3'
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'

export const s3 = new S3Client({
  endpoint: process.env.MINIO_ENDPOINT || 'http://localhost:9000',
  region: 'us-east-1',              // required by SDK, MinIO ignores it
  credentials: {
    accessKeyId: process.env.MINIO_ACCESS_KEY,
    secretAccessKey: process.env.MINIO_SECRET_KEY,
  },
  forcePathStyle: true,              // required for MinIO (not virtual-hosted buckets)
})

const BUCKET = 'uploads'

export async function uploadFile(key, body, contentType) {
  /**
   * Upload a file to MinIO.
   * Args:
   *   key: Object key (path in bucket), e.g. "avatars/user123.jpg"
   *   body: File buffer or readable stream
   *   contentType: MIME type, e.g. "image/jpeg"
   */
  await s3.send(new PutObjectCommand({
    Bucket: BUCKET,
    Key: key,
    Body: body,
    ContentType: contentType,
  }))
  return `${process.env.MINIO_ENDPOINT}/${BUCKET}/${key}`
}

export async function getPresignedUrl(key, expiresIn = 3600) {
  /**
   * Generate a presigned URL for temporary download access.
   * Args:
   *   key: Object key in bucket
   *   expiresIn: URL validity in seconds (default: 1 hour)
   */
  const command = new GetObjectCommand(
Полный SKILL.md на GitHub

Установить minio в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл minio?

Self-host S3-compatible object storage with MinIO. Use when a user asks to set up self-hosted object storage, create an S3-compatible API on their own server, store files without AWS, set up a private cloud storage, manage buckets and objects, configure storage for backups, host static assets, or replace AWS S3 with a self-hosted solution. Covers single-node deployment from source, bucket management, presigned URLs, lifecycle policies, and integration with apps via the S3 API.

Как установить скилл minio?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл minio запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить minio с