Skip to main content

Deploy Application (zeysdk rollout)

Deploy changes to one or more instances simultaneously.

zeysdk rollout

Options

OptionDescriptionDefault
-v, --verboseShow detailed progress outputfalse
-f, --forceContinue rollout even if errors occurfalse
-a, --allRollout to all linked instancesfalse

Interactive Features

  1. Instance Selection

    • If no instances specified, shows interactive checkbox list
    • Currently active instance pre-selected
    • Must select at least one instance
  2. Backup Prompt

    • Option to create server state backup before rollout
    • Creates timestamped ZIP archive in backups directory
    • Includes state from all target instances

Rollout Process

  1. Validation

    • Verifies .zeysdk directory exists
    • Validates instance tokens
    • Checks app identifier in zeyos.app.json
  2. Execution Order

    • Active instance processed first (if included)
    • Remaining instances processed sequentially
    • Automatically switches between instances
    • Returns to original instance when complete
  3. Error Handling

    • Stops on first error unless --force used
    • Creates backups before changes (optional)
    • Restores original instance state if error occurs
    • Continues with valid instances if token validation fails with --force

Error Scenarios

ErrorDescriptionResolution
No instancesNo valid target instances foundSpecify instances or use --all
Token invalidInstance authentication failedCheck instance credentials
Backup failedUnable to create backupVerify write permissions
Rollout failedError during deploymentCheck error message or use --force
Switch failedUnable to change instanceManually switch using use command