To get the most out of cloud templates, configure environment variables and a setup script during template creation. The setup script installs dependencies and prepares your development environment automatically, ensuring every team member has an identical setup.
System Requirements
- A repository enabled in Factory
- Manager role or higher to create cloud templates
Open Cloud Templates Settings
- In Factory, click the Settings icon from the left sidebar.
- Select Cloud Templates.
Create a New Cloud Template
- Click Create Template.
- Enter the repository you want to use.
- Give your template a friendly name (e.g., “frontend-template”).
- (Optional) Configure a setup script to run during template initialization.
- Click Create.
Factory clones your repo and prepares the environment—this can take a minute for large projects.
Launching a Cloud Template inside a Session
Connect to Cloud Machine
- On the session start page, click the Machine Connection button.
- Choose Remote tab.
- Select the template you created earlier.
- Factory attaches the cloud template to your session.

Everyday Usage
Run CLI Commands
Use the Terminal toolkit to execute commands like:
npm run dev pytest git statusOutput streams live into chat and logs.
Edit & Save Files
Open files from the repo, make changes, and save.
Files persist in the cloud template and can be committed upstream when ready.
Files persist in the cloud template and can be committed upstream when ready.
Auto-Save Controls
Auto-save is disabled by default—enable it from the Session Settings panel whenever you want live file syncing.
Troubleshooting & Help
Can't connect from session
Can't connect from session
Ensure you:
- Selected Remote Machine (not Local).
- Refresh the page, or try again in a different session
Need More Help?
Visit the full Cloud Template Troubleshooting Guide
