Phala Network Docs
  • Home
    • 👾Phala Network Docs
  • Overview
    • ⚖️Phala Network
      • 💎Phala Cloud
      • 🥷Dstack
      • 🔐GPU TEE
    • 💎PHA Token
      • 🪙Introduction
      • 👐Delegation
        • Delegate to StakePool
        • What is Vault
        • What is Share
        • WrappedBalances & W-PHA
        • Examples of Delegation
        • Use Phala App to Delegate
        • Estimate Your Reward
      • 🗳️Governance
        • Governance Mechanism
        • Join the Council
        • Voting for Councillors
        • Apply for Project Funding
        • Phala Treasury
        • Phala Governance
        • Setting Up an Account Identity
  • Phala Cloud
    • 🚀Getting Started
      • Create Your Phala Cloud Account
      • Your First CVM Deployment
      • Explore Templates
        • Launch an Eliza Agent
        • Start from Template
    • 🪨TEEs, Attestation & Zero Trust Security
      • Attestation
      • Security Architecture
    • 🥷Phala Cloud User Guides
      • Deploy and Manage CVMs
        • Deploy CVM with Docker Compose
        • Set Secure Environment Variables
        • Deploy Private Docker Image to CVM
        • Debugging and Analyzing Logs
          • Check Logs
          • Private Log Viewer
          • Debug Your Application
        • Application Scaling & Resource Management
        • Upgrade Application
        • Deployment Cheat Sheet
      • Building with TEE
        • Access Your Applications
        • Expose Service Port
        • Setting Up Custom Domain
        • Secure Access Database
        • Create Crypto Wallet
        • Generate Remote Attestation
      • Advanced Deployment Options
        • Deploy CVM with Phala Cloud CLI
        • Deploy CVM with Phala Cloud API
        • Setup a CI/CD Pipeline
    • 🚢Be Production Ready
      • CI/CD Automation
        • Setup a CI/CD Pipeline
      • Production Checklist
      • Troubleshooting Guide
      • Glossary
    • 🔒Use Cases
      • TEE with AI
      • TEE with FHE and MPC
      • TEE with ZK and ZKrollup
    • 📋References
      • Phala Cloud CLI Reference
        • phala
          • auth
          • cvms
          • docker
          • simulator
      • Phala Cloud API & SDKs
        • API Endpoints & Examples
        • SDKs and Integrations
      • Phala Cloud Pricing
    • ❓FAQs
  • Dstack
    • Overview
    • Getting Started
    • Hardware Requirements
    • Design Documents
      • Decentralized Root-of-Trust
      • Key Management Service
      • Zero Trust HTTPs (TLS)
    • Acknowledgement
  • LLM in GPU TEE
    • 👩‍💻Host LLM in GPU TEE
    • 🔐GPU TEE Inference API
    • 🏎️GPU TEE Benchmark
  • Tech Specs
    • ⛓️Blockchain
      • Blockchain Entities
      • Cluster of Workers
      • Secret Key Hierarchy
  • References
    • 🔐Setting Up a Wallet on Phala
      • Acquiring PHA
    • 🌉SubBridge
      • Cross-chain Transfer
      • Supported Assets
      • Asset Integration Guide
      • Technical Details
    • 👷Community Builders
    • 🤹Hackathon Guides
      • ETHGlobal Singapore
      • ETHGlobal San Francisco
      • ETHGlobal Bangkok
    • 🤯Advanced Topics
      • Cross Chain Solutions
      • System Contract and Drivers
      • Run Local Testnet
      • SideVM
    • 🆘Support
      • Available Phala Chains
      • Resource Limits
      • Transaction Costs
      • Compatibility Matrix
      • Block Explorers
      • Faucet
    • ⁉️FAQ
  • Compute Providers
    • 🙃Basic Info
      • Introduction
      • Gemini Tokenomics (Worker Rewards)
      • Budget balancer
      • Staking Mechanism
      • Requirements in Phala
      • Confidence Level & SGX Function
      • Rent Hardware
      • Error Summary
    • 🦿Run Workers on Phala
      • Solo Worker Deployment
      • PRBv3 Deployment
      • Using PRBv3 UI
      • PRB Worker Deployment
      • Switch Workers from Solo to PRB Mode
      • Headers-cache deployment
      • Archive node deployment
    • 🛡️Gatekeeper
      • Collator
      • Gatekeeper
  • Web Directory
    • Discord
    • GitHub
    • Twitter
    • YouTube
    • Forum
    • Medium
    • Telegram
Powered by GitBook
LogoLogo

Participate

  • Compute Providers
  • Node
  • Community
  • About Us

Resources

  • Technical Whitepaper
  • Token Economics
  • Docs
  • GitHub

More

  • Testnet
  • Explorer
  • Careers
  • Responsible Disclosure

COPYRIGHT © 2024 PHALA.LTD ALL RIGHTS RESERVED. May Phala be with you!

On this page
  • Command: simulator
  • Description
  • Examples

Was this helpful?

Edit on GitHub
  1. Phala Cloud
  2. References
  3. Phala Cloud CLI Reference
  4. phala

simulator

Command: simulator

Syntax

phala simulator [options] [command]

Description

The phala simulator command is used to launch a local TEE Simulator for testing locally against your local development to simulate how your application will be able to call the TEE functions like remote attestation or key generation with the KMS.

Usage: phala simulator [options] [command]

TEE simulator commands

Options:
  -h, --help       display help for command

Commands:
  start [options]  Start the TEE simulator
  stop [options]   Stop the TEE simulator
  help [command]   display help for command

Examples

  • Display help

phala simulator --help
  • Start the TEE Simulator

# default uses docker
phala simulator start --port 8090
# run on the native host machine
phala simulator start --type native
Example Output

simulator running docker

ℹ Running TEE simulator with image phalanetwork/tappd-simulator:latest
ℹ Pulling latest simulator image...
ℹ Starting simulator in background...
✓ TEE simulator running successfully. Container ID: d8b4f2fe9392b99b4fd44837f26a09508523200025eb3b125e06f27b4cd736b3
ℹ 

Useful commands:
ℹ - View logs: docker logs -f d8b4f2fe9392b99b4fd44837f26a09508523200025eb3b125e06f27b4cd736b3
ℹ - Stop simulator: docker stop d8b4f2fe9392b99b4fd44837f26a09508523200025eb3b125e06f27b4cd736b3

✓ Setting DSTACK_SIMULATOR_ENDPOINT=http://localhost:8090 for current process

simulator running natively on host machine

ℹ Simulator logs will be written to: /Users/hashwarlock/.phala-cloud/logs/tappd-simulator.log
ℹ Starting simulator with: ./tappd-simulator -l unix:/tmp/tappd.sock
✓ Simulator is running in the background
✓ TEE simulator started successfully
✓ Setting DSTACK_SIMULATOR_ENDPOINT=unix:///tmp/tappd.sock for current process
  • Get a CVM's Information

# default uses docker
phala simulator stop --port 8090
# stop on the native host machine
phala simulator stop --type native
Example Output

simulator running docker

⟳ Stopping TEE simulator...... ✓ Deleted DSTACK_SIMULATOR_ENDPOINT from current process
✓: TEE simulator stopped successfully

simulator running natively on host machine

ℹ Stopping simulator...
✓ Simulator stopped successfully
✓ Deleted DSTACK_SIMULATOR_ENDPOINT from current process
PreviousdockerNextPhala Cloud API & SDKs

Last updated 2 months ago

Was this helpful?

📋