phala) is a command-line tool for deploying and managing Confidential Virtual Machines (CVMs) on Phala Cloud. It provides commands for authentication, deployment, remote access, and CVM lifecycle management.
Installation
Update
Quick Start
Command Overview
Authentication
Deployment
| Command | Description |
|---|---|
deploy | Create or update a CVM with Docker Compose |
CVM Management
| Command | Description |
|---|---|
cvms | List, inspect, start, stop, restart, and delete CVMs |
Remote Access
SSH and SCP access require deploying with the
--dev-os flag. See Enable SSH Access for details.Docker Integration
| Command | Description |
|---|---|
docker | Build, push images and generate Docker Compose files |
Local Development
| Command | Description |
|---|---|
simulator | Run a local TEE simulator for development |
Configuration
Global Options
These options are available for all commands:| Option | Description |
|---|---|
-h, --help | Show help for the current command |
-v, --version | Show CLI version |
Configuration File
The CLI reads configuration fromphala.toml in your project directory. This file stores deployment settings:
phala.toml exists, commands like deploy, ssh, and cp use these values as defaults.
Shell Completion
Generate shell completion scripts for your shell:Environment Variables
| Variable | Description |
|---|---|
PHALA_API_TOKEN | API token for authentication (alternative to phala login) |

