Skip to main content
The Phala Cloud CLI (phala) is a command-line tool for deploying and managing Confidential Virtual Machines (CVMs) on Phala Cloud. For installation and quick start, see Getting Started with the CLI.

Authentication

CommandDescription
loginAuthenticate with Phala Cloud
logoutRemove stored API key
statusCheck authentication status
whoamiPrint the current user
profilesList auth profiles
switchSwitch auth profiles

Deployment

CommandDescription
deployDeploy new CVM or update existing one
instance-typesList available instance types

App Management

CommandDescription
appsList deployed CVMs
cvmsManage CVMs (start, stop, restart, delete, resize, …)
linkLink a local directory to a CVM
nodesList TEE worker nodes
ssh-keysManage SSH keys (list, add, remove, import from GitHub)

CVM Operations

CommandDescription
logsFetch logs from a CVM (container, serial, stdout/stderr)
psList containers of a CVM
sshConnect to a CVM via SSH
cpCopy files to/from a CVM via SCP
runtime-configShow CVM runtime configuration

Advanced

CommandDescription
apiMake authenticated API requests
selfCLI self-management (update)
configManage local CLI configuration
dockerDocker image build/push helpers
simulatorLocal TEE simulator for development
completionGenerate shell completion scripts

Environment Variables

VariableDescription
PHALA_CLOUD_API_KEYOverride the stored API key
PHALA_CLOUD_API_PREFIXOverride the API base URL
PHALA_CLOUD_DIROverride the credentials directory (default: ~/.phala-cloud)
PHALA_UPDATE_CHANNELRelease channel for self update (e.g., latest, beta)

Configuration

  • Project config: phala.toml in working directory (see deploy)
  • Credentials: ~/.phala-cloud/