Push Environment
kinsta.environments.pushPush a source environment (e.g., staging) to a target environment (e.g., live) with options to include database and files. Returns an operation ID for tracking.
Instructions
Push one environment to another (e.g. staging to live). Returns an operation_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site ID | |
| source_env_id | Yes | Source environment ID to push from | |
| target_env_id | Yes | Target environment ID to push to | |
| push_db | No | Push the database | |
| push_files | No | Push files | |
| run_search_and_replace | No | Run search and replace on the database | |
| push_files_option | No | Which files to push | |
| file_list | No | List of specific files to push (when push_files_option is SPECIFIC_FILES) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||