A command line interface for editing files from your ScraperWiki box, on your local machine.
npm install swbox
|1||downloads in the last week|
|12||downloads in the last month|
|Version||0.0.13 last updated 6 months ago|
|Dependencies||mocha, coffee-script, wd, wd40|
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:
- Copying the remote box files to your local machine, then pushing changes.
- Mounting the remote box as a local filesystem, using SSHFS.
swbox clone fegy5tq – Makes a local copy of email@example.com
swbox clone g6ut126@free - Makes a local copy of firstname.lastname@example.org
swbox mount fegy5tq - Mounts email@example.com as a local filesystem
How to use
npm install -g swbox
(If you'd prefer not to use npm, you can always
git clonethis repo and run
./prepublishyourself to get an executable cli.js script which you can add to your
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 command line client requires Node.js.
If you are developing
swbox we recommend that you run the following from the directory
containing your git clone:
./prepublish npm link
This will put the command
swbox in the usual location where npm installs binaries (which
should already be on your PATH), and symlink it so that whenever you change this directory,
those changes are live.
If you want to use this local in-development version of swbox with a box, then go to the box's directory and use:
npm link swbox
swbox = require 'swbox' will automatically get your local in-development version of swbox.
0.0.11 – pandora's box
- Swbox is now published to npm.
swbox updateis no longer required and has been removed.
0.0.10 – lunch box
swbox testruns .coffee or .js tests in /tool/test directory, using Mocha.
0.0.9 – set-top box
- Rsync reports of "Permanently added [url] to the list of known hosts" no longer fool swbox into thinking the
- Mentions of "beta.scraperwiki.com" changed to "scraperwiki.com"
0.0.8 – post box
swbox push --previewwill show a preview of what would be created/updated/deleted, without changing anything on the remote box.
0.0.7 – heart shaped 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)
0.0.6 – junction box
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.
- fixed a bug that caused
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
- standardised display of required and optional arguments in help messages
0.0.5 – hotbox
swbox synccommand to synchronise local changes inside a clone, back up to the original box
0.0.4 – chocolate box
swbox clonecommand to clone an entire box's contents to your local filesystem
0.0.3 – cereal box
-oworkaround=renameto sshfs options, to allow
gitto rename/update files
0.0.2 – cardboard box
swbox updatecommand to download the latest version of swbox
0.0.1 – Initial release
- mounting and unmounting boxes as sshfs drives
- license, help and docs