Zum Hauptinhalt springen

Clone Application (zeysdk clone)

Copy an existing application from a remote instance.

zeysdk clone <INSTANCE_ID> <APP_IDENTIFIER> [TARGET_DIRECTORY]

Parameters

ParameterDescriptionRequiredDefaultExample
INSTANCE_IDSource instance ID-dev-instance
APP_IDENTIFIERApplication to clone-my-app
TARGET_DIRECTORYDestination pathSame as APP_IDENTIFIERapps/my-app

Options

OptionDescription
--verboseDisplay detailed progress output

Cloning Process

  1. Directory Setup

    • If TARGET_DIRECTORY not provided, uses APP_IDENTIFIER as directory name
    • Checks if target directory already exists
    • Creates new directory at specified location
  2. App Creation

    • Creates temporary local version of the app
    • Sets up initial scaffolding
  3. Instance Linking

    • Links to specified instance
    • Validates connection
  4. Data Sync

    • Performs force pull to sync all app data
    • Retrieves complete application state

Error Handling

ErrorDescriptionResolution
Directory existsTarget directory already existsChoose different target directory
Creation failedApp creation errorCheck app identifier and permissions
Link failedInstance linking errorVerify instance ID and connectivity
Pull failedData sync errorCheck network and try again