Push local workspace file
push_file_from_workspaceCopies a local workspace file to its matching remote path on XServer via SFTP, backing up existing files by default.
Instructions
Read one local workspace file and write it to the matching remote path. Existing remote files are backed up by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the configured domain root. | |
| backup | No | Back up existing remote file before writing. | |
| domain | Yes | Configured domain root to operate under. | |
| dry_run | No | Return what would happen without writing. | |
| server_id | No | Server profile id. Defaults to config.defaultServer. | |
| backup_label | No | Backup label used in the generated filename. | |
| workspace_root | No | Local workspace root. Defaults to config.localWorkspaceRoot or ~/Dev/xserver-sites. | |
| allow_sensitive | No | Allow default-excluded paths such as wp-config.php, uploads, logs, backups, and dumps. |