Deactivate Application
The deactivate command disables your ZeyOS application in the current instance while preserving it.
Bash
zeysdk deactivate [options]
Options
| Option | Description |
|---|---|
--verbose | Show detailed output |
Process
-
Validation
- Verifies app directory
- Checks configuration
- Validates token
-
Deactivation
- Sets app activity to inactive
- Updates platform state
- Confirms deactivation
Error Handling
| Error | Description | Resolution |
|---|---|---|
| Not in app directory | Wrong location | Navigate to app root |
| Config missing | No sync.json found | Run zeysdk link |
| Network error | Platform unreachable | Check 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