Skip to content

sync

The sync command is the “automation” version of download. It’s designed for scripts and hands-free operations.

Terminal window
workstate sync [OPTIONS]
  1. It checks the latest backup available on S3 for the current project.
  2. If the local state is different, it updates files automatically.
  3. If the backup is encrypted, it will look for the password in the WORKSTATE_PASSWORD environment variable or prompt the user.
Terminal window
# Basic sync
workstate sync
# Force sync without asking
workstate sync --force