Difference between revisions of "Mvs"

From Christoph's Personal Wiki
Jump to: navigation, search
(Basic usage)
Line 14: Line 14:
 
* <tt>com/commit</tt> &mdash; Commit (upload) changes:
 
* <tt>com/commit</tt> &mdash; Commit (upload) changes:
 
  % mvs commit -m "''commit message''" ''Foo.wiki''
 
  % mvs commit -m "''commit message''" ''Foo.wiki''
 +
 +
===Notes===
 +
It is important the the files you 'commit' are in UTF-8 format. It easy to run a simple utility over all of your <code>.wiki</code> files:
 +
for i in *.wiki; do iconv -f ISO-8859-1 -t UTF-8 "$i" -o "converted/$i"; done
  
 
== See also ==
 
== See also ==

Revision as of 06:48, 15 January 2007

The correct title of this article is mvs. The initial letter is capitalized due to technical restrictions.

mvs is a command line Mediawiki client.

Basic usage

  • login — Login to wiki:
% mvs login -d www.yoururl.com -u Bot -p "your_password" -w "/index.php"
  • up/update — Fetch one or more working files:
% mvs update Foo.wiki Bar.wiki
  • preview — Preview changes (does not commit anything):
% mvs preview -m "commit message" Foo.wiki
  • com/commit — Commit (upload) changes:
% mvs commit -m "commit message" Foo.wiki

Notes

It is important the the files you 'commit' are in UTF-8 format. It easy to run a simple utility over all of your .wiki files:

for i in *.wiki; do iconv -f ISO-8859-1 -t UTF-8 "$i" -o "converted/$i"; done

See also

External links