Skip to main content
View Markdown

Deactivate Application

The deactivate command disables your ZeyOS application in the current instance while preserving it.

Bash
zeysdk deactivate [options]

Options

OptionDescription
--verboseShow detailed output

Process

  1. Validation

    • Verifies app directory
    • Checks configuration
    • Validates token
  2. Deactivation

    • Sets app activity to inactive
    • Updates platform state
    • Confirms deactivation

Error Handling

ErrorDescriptionResolution
Not in app directoryWrong locationNavigate to app root
Config missingNo sync.json foundRun zeysdk link
Network errorPlatform unreachableCheck connectivity

Notes

  • App remains installed
  • Data is preserved
  • Users lose access
  • Can be reactivated
  • Ideal for maintenance

Best Practices

  • Deactivate before planned maintenance that affects users
  • Confirm the active instance before deactivation
  • Communicate downtime before disabling production apps
  • Reactivate only after validating the app state