Skip to content

Commit 8a67e8c

Browse files
rene-hermenaugithub-actions[bot]
authored andcommitted
Release v1.6.0 with signed macOS universal binary
1 parent 1f57f45 commit 8a67e8c

File tree

13 files changed

+142
-28
lines changed

13 files changed

+142
-28
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## v1.6.0 (2026-01-29)
2+
3+
- **Enh:** Docker Compose warning "No services to build" no longer clutters the terminal output (#160).
4+
- **Enh:** `reset` command now supports `--from` flag to restore from a backup (#158).
5+
- **Enh:** `reset` command now supports `--wp` flag to specify WordPress version (#162).
6+
- **Enh:** Restore directly to dockerized sites using hostname: `wpstaging restore site.local backup.wpstg` (#148).
7+
- **Enh:** Database credentials are auto-detected when restoring to a dockerized site (#148).
8+
- **Fix:** Stored license is now preserved when validation fails due to network timeout (#165).
9+
- **Fix:** `reset` command now fails correctly when the site doesn't exist instead of creating a new site (#164).
10+
- **Fix:** `WP_VERSION` in `.env` file now defaults to "latest" when `--wp` flag is not specified (#162).
11+
112
## v1.5.2 (2026-01-24)
213

314
- **Fix:** MariaDB now starts correctly on Docker Desktop for Mac by disabling native AIO and using fsync flush method (#156).

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,18 @@ wpstaging restore --path=/var/www/site \
321321
--db-name=dbname --db-user=user --db-pass=pass --db-host=host backupfile.wpstg
322322
```
323323

324+
### Restore to Dockerized Site
325+
326+
Restore directly to an existing dockerized site using its hostname. Database credentials are auto-detected from the site's `.env` file.
327+
328+
```bash
329+
wpstaging restore mysite.local backup.wpstg
330+
wpstaging restore mysite.local --from=backup.wpstg
331+
wpstaging restore mysite.local --from=https://example.com/backup.wpstg
332+
```
333+
334+
The site must already exist (created with `wpstaging add mysite.local`).
335+
324336
---
325337

326338
### Dump Backup Index
@@ -378,6 +390,8 @@ wpstaging add https://newsite.local
378390
wpstaging list
379391
wpstaging list site1.local site2.local # Show details for multiple sites
380392
wpstaging reset mysite.local # Reset site to fresh WordPress
393+
wpstaging reset mysite.local --wp=6.5 # Reset with specific WordPress version
394+
wpstaging reset mysite.local --from=backup.wpstg # Reset and restore from backup
381395
wpstaging del oldsite.local
382396
wpstaging del site1.local site2.local # Delete multiple sites
383397
wpstaging del # Delete all sites (with confirmation)

build/linux_amd64/wpstaging

20 KB
Binary file not shown.

build/macos_amd64/wpstaging

20.1 KB
Binary file not shown.

build/macos_arm64/wpstaging

16.3 KB
Binary file not shown.

build/macos_universal/wpstaging

32.3 KB
Binary file not shown.

build/windows_amd64/wpstaging.exe

19.5 KB
Binary file not shown.

build/windows_i386/wpstaging.exe

20.5 KB
Binary file not shown.

build/wp_staging_cli_bash_completion

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ _wp_staging_cli() {
135135
--db-ssl-cert
136136
--db-ssl-key
137137
--db-ssl-mode
138+
--env-path
139+
--compose-file
140+
--skip-update-hosts-file
138141
"
139142

140143
# Docker/Site management options (for add, start, stop, restart, etc.)
@@ -163,6 +166,7 @@ _wp_staging_cli() {
163166
--admin-email
164167
--secure-credentials
165168
--multisite
169+
--from
166170
"
167171

168172
# Detect if Only or Skip filter is already used

docs/COMMANDS.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,27 @@ Env Flags:
236236
```
237237
Reset a WordPress site in the Docker environment.
238238
239+
Use --from to restore from a WP STAGING backup file after resetting the site.
240+
Use --wp to specify a different WordPress version to install.
241+
239242
Usage:
240243
wpstaging reset <hostname> [flags]
241244
242245
Examples:
243246
wpstaging reset mysite.local
247+
wpstaging reset mysite.local --wp=6.5
248+
wpstaging reset mysite.local --from=backup.wpstg
249+
wpstaging reset mysite.local --from=https://example.com/backup.wpstg
244250
245251
Env Flags:
246252
--env-path string Path to store docker environments (default: ~/wpstaging)
247253
254+
WordPress Flags:
255+
--wp string WordPress version to install (e.g., 6.5, latest)
256+
257+
Other Flags:
258+
--from string Backup file path or remote URL (http/https) to restore after reset
259+
248260
```
249261

250262
<a name="command-extract"></a>
@@ -319,14 +331,26 @@ at the target path.
319331
The backup file can be a local path or a remote URL (http/https).
320332
Use --from flag or pass the backup file directly as an argument.
321333
334+
For dockerized sites, you can specify the site hostname directly:
335+
wpstaging restore site.local backup.wpstg
336+
wpstaging restore site.local --from=backup.wpstg
337+
338+
The site must already exist (created with 'wpstaging add site.local').
339+
Database credentials will be auto-detected from the site's .env file.
340+
322341
Usage:
323-
wpstaging restore [flags] <backupfile.wpstg>
342+
wpstaging restore [flags] [<site.local>] <backupfile.wpstg>
324343
325344
Examples:
326345
wpstaging restore --path=/var/www/html backup.wpstg
327346
wpstaging restore --path=/var/www/html --from=backup.wpstg
328347
wpstaging restore --path=/var/www/html --from=https://example.com/backups/backup.wpstg
329348
349+
# Restore directly to a dockerized site:
350+
wpstaging restore site.local backup.wpstg
351+
wpstaging restore site.local --from=backup.wpstg
352+
wpstaging restore site.local --from=https://example.com/backups/backup.wpstg
353+
330354
Flags:
331355
-o, --outputdir string Directory for extracted files (default: ./wpstaging-output)
332356
-p, --path string WordPress installation path (required)
@@ -816,4 +840,4 @@ Env Flags:
816840

817841
---
818842

819-
*Generated on 2025-12-26 14:18:05 UTC*
843+
*Generated on 2026-01-26 15:06:27 UTC*

0 commit comments

Comments
 (0)