A command line interface for editing files from your ScraperWiki box, on your local machine.
A command line interface for editing files from your box, on your local machine.
The perfect partner if you're developing ScraperWiki tools, and want to use your normal text editor like TextMate or Sublime Text.
Supports two alternative workflows:
swbox clone fegy5tq – Makes a local copy of firstname.lastname@example.org
swbox clone g6ut126@free - Makes a local copy of email@example.com
swbox mount fegy5tq - Mounts firstname.lastname@example.org as a local filesystem
Git clone the swbox repo to somewhere safe.
cd ~ # feel free to change this directorygit clone git://github.com/scraperwiki/swbox.gitcd swbox
Add swbox to your $PATH, so you can type "swbox" from anywhere on your filesystem.
ln -s $(pwd)/swbox.coffee /usr/local/bin/swbox
Read the documentation by running
Mounting boxes as local drives requires Fuse and SSHFS. Both are available on the Fuse for OS X homepage.
swbox push --previewwill show a preview of what would be created/updated/deleted, without changing anything on the remote box.
<boxName>can now include an optional
@boxServersuffix, allowing you to clone and mount boxes on free.scraperwiki.com and ds.scraperwiki.com (eg: via
swbox clone abcd123@freeor
swbox mount wxyz789@ds)
swbox syncrenamed to
swbox pushsince it doesn't actually sync, it removes any files on the destination that aren't present on the local copy.
swbox sync/pushto loop forever when invoked outside of a local box clone
swbox cloneno longer takes an optional destination directory – it will always create a clone, in new directory named after the box, in the current working directory
/swboxsymbolic link in root directory – it's no longer needed
swbox synccommand to synchronise local changes inside a clone, back up to the original box
swbox clonecommand to clone an entire box's contents to your local filesystem
-oworkaround=renameto sshfs options, to allow
gitto rename/update files
swbox updatecommand to download the latest version of swbox