Start from Cloud CLI
Make sure you have gone through the Sign-up for Cloud Account section before continuing.
Prerequisites
Docker installed and running
Node & Bun or npx installed
Docker Hub account for publishing images
Phala Cloud API key
Installation
Install globally or use npx
or bunx
Sign Up for an Account
Run npx phala free
to get started with your Phala Cloud account and a free CVM deployment.
This will open a browser to the Phala Cloud sign-up page. Get your free account then get started on generating your Phala Cloud API Key.
Generate a Phala Cloud API Key
Log into your dashboard and select the logo in the top left corner.
Click your username and select "API Tokens".
Click Create Token and then copy your newly generated API Key.
Launch a CVM with a Dstack Example
Now we want to set the API Key for the CLI and launch our first CVM. Take the API Key you copied down then set it with the phala auth login
command.
Deploy one of the Dstack examples under the examples folder. This example with launch the timelock-nts example where a key is derived within the TEE then after 5 minutes, the private key is released.
Example Output:
You should see the CVM in your Dashboard now. Go and check the details.
Note: You often need to wait for a few seconds for the CVM to be ready, before that the page will be blank.
Click on the Containers tab and get check out the logs.
You'll have access to your logs from your newly deployed Confidential VM in Phala Cloud.
For more information on the Timelock-NTS example, check out the information in the Dstack Examples Repo.
Conclusion
Congratulations! You have deployed your first CVM into the Phala Cloud. Let's move to more meaningful examples.
Last updated
Was this helpful?