Simulator Management
Plato Hub provides powerful commands for managing simulators throughout their lifecycle - from creation to deployment.Creating New Simulators
Initialize a New Simulator
Create a brand new simulator with repository setup:Name of the new simulator (e.g.,
myapp
, crm-system
)Description for the new simulator
Type of simulator to create
Directory to create and clone into (defaults to simulator name)
- Creates a new simulator in the Plato registry
- Sets up a Git repository for the simulator
- Clones the repository to your local machine
- Configures the local directory for development
Working with Existing Simulators
Clone an Existing Simulator
Download and set up a local copy of an existing simulator:Link Local Directory
Link an existing directory to a simulator (useful for monorepos):.plato-hub.json
configuration without cloning - perfect for integrating simulators into existing codebases.
Git Operations
Plato Hub provides enhanced git commands that understand simulator repositories:Authenticate with Hub
Set up authentication for git operations:Push Changes
Push your local changes to the simulator repository:Hub git commands work in “isolation” - they sync only the simulator files without affecting your monorepo structure.
Pull Updates
Pull updates from the simulator repository:Check Status
See the difference between your local simulator and the remote:Listing Simulators
Available Simulators
See all simulators you have access to:- Simulator names and descriptions
- Enabled/disabled status
- Access permissions
Configuration Management
Default Configuration
When you clone or create a simulator, Plato automatically creates aplato-config.yml
file:
Configuration Options
Compute Resources
Configure CPU, memory, and disk for your VM
Datasets
Define different environments (base, test, prod-copy)
Entrypoints
Specify how your simulator services start up
Mutation Listeners
Monitor database changes for state tracking
Best Practices
Monorepo Integration: Use
plato hub link
instead of clone
when working with monorepos to avoid nested git repositories.Branch Strategy: Use feature branches for development, push to
main
for production snapshots.Always run
plato hub login
before git operations to ensure proper authentication.Next Steps
Now that you understand simulator management, learn about:- Development Sandbox - Test your changes in isolated environments
- Deployment Workflow - Publish and version your simulators