← 返回命令列表

Linux command

flyctl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Launch new app

flyctl launch

Deploy application

flyctl deploy

List apps

flyctl apps list

View logs

flyctl logs

SSH into machine

flyctl ssh console

Check app status

flyctl status

Manage secrets

flyctl secrets set [KEY=VALUE]

说明

flyctl (also available as fly) is the CLI for Fly.io, a platform for deploying applications globally on edge infrastructure. It manages applications, deployments, and platform resources. The tool deploys Docker containers or builds from source, distributing them across Fly's global network. It handles secrets, volumes, scaling, and networking configuration. flyctl enables full platform control from the command line, from initial launch to production management.

参数

launch
Create and deploy new app.
deploy
Deploy current directory.
apps _SUBCMD_
Manage applications.
logs
View application logs.
ssh _SUBCMD_
SSH access to machines.
secrets _SUBCMD_
Manage secrets/environment.
scale _SUBCMD_
Adjust resources.
status
Show app deployment status.
--help
Display help information.
-t, --access-token _TOKEN_
Fly API access token.
--verbose
Verbose output.
--debug
Print additional logs and traces.

FAQ

What is the flyctl command used for?

flyctl (also available as fly) is the CLI for Fly.io, a platform for deploying applications globally on edge infrastructure. It manages applications, deployments, and platform resources. The tool deploys Docker containers or builds from source, distributing them across Fly's global network. It handles secrets, volumes, scaling, and networking configuration. flyctl enables full platform control from the command line, from initial launch to production management.

How do I run a basic flyctl example?

Run `flyctl launch` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does launch do in flyctl?

Create and deploy new app.