← 返回
开发者工具 中文

Fly

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...
通过CLI部署和管理Fly.io应用,包括应用、机器、卷、密钥和证书。当用户提及'fly'、'flyctl'、'fly.io'或想要部署时使用。
melvynx
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 592
下载
💾 4
安装
1
版本
#latest

概述

fly

Setup

macOS:

brew install flyctl

Linux:

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

Verify installation:

fly --version

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

Authentication

fly auth login

Check auth status:

fly auth whoami

Resources

Apps

CommandDescription
----------------------
fly launchCreate and configure a new app
fly apps listList all apps
fly apps create Create a new app
fly apps destroy Destroy an app
fly statusShow app status
fly infoShow app details

Deploy

CommandDescription
----------------------
fly deployDeploy the app
fly deploy --image Deploy a specific Docker image
fly deploy --strategy rollingDeploy with rolling strategy
fly releasesList recent releases

Logs

CommandDescription
----------------------
fly logsStream app logs
fly logs --app Stream logs for a specific app

Scaling

CommandDescription
----------------------
fly scale count 2Scale to 2 instances
fly scale vm shared-cpu-1xSet VM size
fly scale vm shared-cpu-1x --memory 512Set VM size with memory
fly scale showShow current scale settings
fly regions listList available regions
fly regions add Add a region

Secrets

CommandDescription
----------------------
fly secrets listList all secrets
fly secrets set KEY=valueSet a secret
fly secrets set KEY1=val1 KEY2=val2Set multiple secrets
fly secrets unset KEYRemove a secret

Volumes

CommandDescription
----------------------
fly volumes listList all volumes
fly volumes create --size 1Create a volume (size in GB)
fly volumes create --size 1 --region Create volume in specific region
fly volumes destroy Destroy a volume
fly volumes extend --size 5Extend volume size

Certificates

CommandDescription
----------------------
fly certs listList all certificates
fly certs create Add a certificate for a domain
fly certs show Show certificate details
fly certs delete Remove a certificate

Machines

CommandDescription
----------------------
fly machine listList all machines
fly machine start Start a machine
fly machine stop Stop a machine
fly machine destroy Destroy a machine
fly machine status Show machine status

SSH and Proxy

CommandDescription
----------------------
fly ssh consoleOpen SSH console to the app
fly ssh console --command "ls -la"Run a command via SSH
fly proxy 5432Proxy a port to local machine
fly proxy 5432:5432Proxy with explicit local:remote ports

Global Flags

FlagDescription
-------------------
--jsonOutput result as JSON
--app Specify app name
--config Path to fly.toml config file
--region Specify region
--verboseEnable verbose output

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 22:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,998
ai-intelligence

Exa Cli

melvynx
通过CLI管理Exa AI,支持搜索、内容获取、AI回答及上下文功能。当用户提及'exa'、网页搜索、相似页面或AI回答时使用。
★ 0 📥 667
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 67 📥 180,031