sync
The sync command is the “automation” version of download. It’s designed for scripts and hands-free operations.
workstate sync [OPTIONS]How it works
Section titled “How it works”- It checks the latest backup available on S3 for the current project.
- If the local state is different, it updates files automatically.
- If the backup is encrypted, it will look for the password in the
WORKSTATE_PASSWORDenvironment variable or prompt the user.
Examples
Section titled “Examples”# Basic syncworkstate sync
# Force sync without askingworkstate sync --force