Skip to main content
The Phala Cloud CLI lets you deploy, manage, and monitor Confidential Virtual Machines without leaving your terminal. It handles authentication, deployment, logs, and SSH access.

Install

npm install -g phala
Or run without installing: npx phala / bunx phala

Get Started

Follow the Deploy Your First CVM tutorial to deploy a Jupyter notebook and test TEE functions in under 10 minutes.

Common Commands

CommandDescription
phala loginAuthenticate with Phala Cloud
phala statusCheck authentication and account info
phala deployDeploy a CVM from a docker-compose.yml
phala cvms listList all your CVMs
phala cvms get <name>Get CVM details and status
phala logs <name>View container logs
phala ssh <name>SSH into a CVM
phala cvms delete <name>Delete a CVM
For the full command reference, see CLI Reference.

Local Development

Test your application locally before deploying:
phala simulator start
The simulator provides a local TEE environment for development. See Local Development for details.

CI/CD

Automate deployments with GitHub Actions. See Set Up a CI/CD Pipeline.