Security v1.0.0

fly

Deploy and manage Fly.io apps via CLI - apps, machines, volumes, secrets, certificates. Use when user mentions 'fly',...

melvynx 更新于 2026-03-11 1 浏览
下载 SKILL

技能说明

Deploy and manage Fly.io apps via CLI - apps, machines, volumes, secrets, certificates. Use when user mentions 'fly', 'flyctl', 'fly.io', or wants to deploy on Fly.io.

使用场景

Deploy and manage Fly.io apps via CLI - apps, machines, volumes, secrets, certificates. Use when user mentions 'fly', 'flyctl', 'fly.io', or wants to deploy on Fly.io.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/fly
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 16 kB
SKILL.md text/markdown
---
name: fly
description: "Deploy and manage Fly.io apps via CLI - apps, machines, volumes, secrets, certificates. Use when user mentions 'fly', 'flyctl', 'fly.io', or wants to deploy on Fly.io."
category: devtools
install_command: "brew install flyctl"
---

# fly

## Setup

macOS:
```bash
brew install flyctl
```

Linux:
```bash
curl -L https://fly.io/install.sh | sh
```

Verify installation:
```bash
fly --version
```

Always use `--json` flag when calling commands programmatically (where supported).

## Authentication

```bash
fly auth login
```

Check auth status:
```bash
fly auth whoami
```

## Resources

### Apps

| Command | Description |
|---------|-------------|
| `fly launch` | Create and configure a new app |
| `fly apps list` | List all apps |
| `fly apps create <name>` | Create a new app |
| `fly apps destroy <name>` | Destroy an app |
| `fly status` | Show app status |
| `fly info` | Show app details |

### Deploy

| Command | Description |
|---------|-------------|
| `fly deploy` | Deploy the app |
| `fly deploy --image <image>` | Deploy a specific Docker image |
| `fly deploy --strategy rolling` | Deploy with rolling strategy |
| `fly releases` | List recent releases |

### Logs

| Command | Description |
|---------|-------------|
| `fly logs` | Stream app logs |
| `fly logs --app <name>` | Stream logs for a specific app |

### Scaling

| Command | Description |
|---------|-------------|
| `fly scale count 2` | Scale to 2 instances |
| `fly scale vm shared-cpu-1x` | Set VM size |
| `fly scale vm shared-cpu-1x --memory 512` | Set VM size with memory |
| `fly scale show` | Show current scale settings |
| `fly regions list` | List available regions |
| `fly regions add <region>` | Add a region |

### Secrets

| Command | Description |
|---------|-------------|
| `fly secrets list` | List all secrets |
| `fly secrets set KEY=value` | Set a secret |
| `fly secrets set KEY1=val1 KEY2=val2` | Set multiple secrets |
| `fly secrets unset KEY` | Remove a secret |

### Volumes

| Command | Description |
|---------|-------------|
| `fly volumes list` | List all volumes |
| `fly volumes create <name> --size 1` | Create a volume (size in GB) |
| `fly volumes create <name> --size 1 --region <region>` | Create volume in specific region |
| `fly volumes destroy <id>` | Destroy a volume |
| `fly volumes extend <id> --size 5` | Extend volume size |

### Certificates

| Command | Description |
|---------|-------------|
| `fly certs list` | List all certificates |
| `fly certs create <domain>` | Add a certificate for a domain |
| `fly certs show <domain>` | Show certificate details |
| `fly certs delete <domain>` | Remove a certificate |

### Machines

| Command | Description |
|---------|-------------|
| `fly machine list` | List all machines |
| `fly machine start <id>` | Start a machine |
| `fly machine stop <id>` | Stop a machine |
| `fly machine destroy <id>` | Destroy a machine |
| `fly machine status <id>` | Show machine status |

### SSH and Proxy

| Command | Description |
|---------|-------------|
| `fly ssh console` | Open SSH console to the app |
| `fly ssh console --command "ls -la"` | Run a command via SSH |
| `fly proxy 5432` | Proxy a port to local machine |
| `fly proxy 5432:5432` | Proxy with explicit local:remote ports |

## Global Flags

| Flag | Description |
|------|-------------|
| `--json` | Output result as JSON |
| `--app <name>` | Specify app name |
| `--config <path>` | Path to fly.toml config file |
| `--region <region>` | Specify region |
| `--verbose` | Enable verbose output |

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。