Zum Hauptinhalt springen
Markdown anzeigen

Show Current Instance

The whoami command displays the active ZeyOS instance for the current application.

Bash
zeysdk whoami [options]

Options

OptionDescription
--verboseShow detailed output

Process

  1. Validation

    • Loads .zeysdk/sync.json
    • Verifies that an active instance is configured
  2. Output

    • Displays the active instance as URL: ...
    • Displays the active instance as ID: ...

Examples

Bash
zeysdk whoami
zeysdk whoami --verbose

Error Handling

ErrorDescriptionResolution
Missing sync.jsonNo active instance configurationRun zeysdk link
Invalid sync.jsonActive instance configuration is invalidRe-link the instance

Notes

  • whoami reads the active instance from .zeysdk/sync.json
  • It does not validate credentials or contact the remote instance
  • The command is useful before operations that modify remote state
  • Use verbose output when troubleshooting local sync configuration

Best Practices

  • Run zeysdk whoami before destructive or production-facing commands
  • Confirm the instance before push, sync, delete, deactivate, or predelete
  • Re-link the instance if the displayed URL or ID is incorrect