Prerequisites
You will need the following to use the CLI:Install CLI
Install via npm or use npx/bunxSign Up and Get API Key
To deploy applications to Phala Cloud, you’ll need an API key:- Visit Phala Cloud to log into your Phala Cloud account. If you do not have an account, register here.
- After logging in, navigate to “User Avatar (right top corner) > API Tokens”
- Create a new API Token with an appropriate name (e.g., “CLI Access”)
- Copy the generated API key - you’ll need it for authentication
-
You can verify your API key using:
Deploy Your First TEE App
Check Attestation
🏗️ Development Workflow
1️⃣ Local Development
Develop and test your application locally with the built-in TEE simulator:2️⃣ Cloud Deployment
Deploy your application to Phala’s decentralized TEE Cloud:🔍 Troubleshooting
Common issues and solutions:- Docker Build Fails
- Verify Docker daemon is running
- Check Dockerfile path
- Ensure proper permissions
- Simulator Issues
- Check if port 8090 is available
- Verify Docker permissions
- Cloud Deployment Fails
- Validate API key
- Confirm image exists on Docker Hub
- Check environment variables