Unofficial support for VersionPress. Note that VersionPress is currently not being developed: https://github.com/versionpress/versionpress/issues/1481.
And I find that when running wp vp restore-site --siteurl='http://localhost/mysite' --require=wp-content/plugins/versionpress/src/Cli/vp.php
The file does not exist. The plugin was not committed to github.
So I manually copy the files and then this happens:
$ wp vp restore-site --siteurl='http://localhost/' --require=wp-content/plugins/versionpress/src/Cli/vp.php
Error: wp-config.php file not found
$ touch wp-config.php
$ wp vp restore-site --siteurl='http://localhost/' --require=wp-content/plugins/versionpress/src/Cli/vp.php
PHP Warning: Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in ... /wp-content/plugins/versionpress/bootstrap.php on line 14
PHP Warning: Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in ... /wp-content/plugins/versionpress/bootstrap.php on line 20
Error: Unfortunately, this site was not tracked by VersionPress.
Therefore, it cannot be restored.
So I'm trying versionpress, and I activate it, and I push it to github, and I clone it, and I'm trying to restore it, as per:
And I find that when running
wp vp restore-site --siteurl='http://localhost/mysite' --require=wp-content/plugins/versionpress/src/Cli/vp.php
The file does not exist. The plugin was not committed to github.
So I manually copy the files and then this happens: