Usage and flags explained

Alessandro Fazzi edited this page May 30, 2016 · 2 revisions

These are the CLI's integrated help. Go to bottom of page to read flags explanation.

> wordmove help
Tasks:
  wordmove help [TASK]  # Describe available tasks or one specific task
  wordmove init         # Generates a brand new Movefile
  wordmove pull         # Pulls WP data from remote host to the local machine
  wordmove push         # Pushes WP data from local machine to remote host
⟩ wordmove help push
Usage:
  wordmove push

Options:
  -w, [--wordpress], [--no-wordpress]
  -u, [--uploads], [--no-uploads]
  -t, [--themes], [--no-themes]
  -p, [--plugins], [--no-plugins]
  -m, [--mu-plugins], [--no-mu-plugins]
  -l, [--languages], [--no-languages]
  -d, [--db], [--no-db]
  -v, [--verbose], [--no-verbose]
  -s, [--simulate], [--no-simulate]
  -e, [--environment=ENVIRONMENT]
  -c, [--config=CONFIG]
      [--debug], [--no-debug]
      [--no-adapt], [--no-no-adapt]
      [--all], [--no-all]

Pushes WP data from local machine to remote host
⟩ wordmove help pull
Usage:
  wordmove pull

Options:
  -w, [--wordpress], [--no-wordpress]
  -u, [--uploads], [--no-uploads]
  -t, [--themes], [--no-themes]
  -p, [--plugins], [--no-plugins]
  -m, [--mu-plugins], [--no-mu-plugins]
  -l, [--languages], [--no-languages]
  -d, [--db], [--no-db]
  -v, [--verbose], [--no-verbose]
  -s, [--simulate], [--no-simulate]
  -e, [--environment=ENVIRONMENT]
  -c, [--config=CONFIG]
      [--debug], [--no-debug]
      [--no-adapt], [--no-no-adapt]
      [--all], [--no-all]

Pulls WP data from remote host to the local machine

Flags explanation

Flags gives you the control on which folders/components will be pushed/pulled

-w, [--wordpress]

Consider the Wordpress core. Ignore wp-content folder

-u, [--uploads]

Consider wp-content/upload

-t, [--themes]

Consider wp-content/themes

-p, [--plugins]

Consider wp-content/plugins

-m, [--mu-plugins]

Consider wp-content/mu-plugins

-l, [--languages]

Consider wp-content/languages

-d, [--db]

Consider the database

-v, [--verbose]

Print more info on screen

-s, [--simulate]

Do not execute transfers

-e, [--environment=ENVIRONMENT]

Set the remote environment when multiple are defined inside the Movefile E.g.: wordmove push -e production -d

-c, [--config=CONFIG]

add description

[--no-adapt]

add description

[--all]

Consider all the folders and the DB (do a full copy)

[--debug]

When you use --debug with pull or push command with FTP, wordmove will not delete the output file and will print the path of it. In this way you can open it and inspect is there was any error with the PHP libraries we use to import/export the database via FTP