NAME
strut - command line interface (using Socialtext::Resting) to the Socialtext REST services
SYNOPSIS
strut help
strut configure
strut list-workspaces
strut list-pages <workspace>
strut get_page <workspace> <pagename>
strut set_page <workspace> <pagename> <filename>
strut get_tags <workspace> <pagename>
strut set_tags <workspace> <pagename>
strut add_attachment <workspace> <pagename> <filename>
COMMANDS
The following commands are supported
help
Standard man page for this program
configure
Configure strut with username, password, and server information. See the CONFIGURATION section below for a discussion of your configuration options.
list_workspaces
Give a list of all workspaces on the server
list_pages <workspace>
Give a list of all pages in the given workspace. If no workspace is given you will be prompted to pick from available workspaces.
get_page <workspace> <page_name>
Retrieve the contents of the specified page. If no workspace or page are given the user will be prompted to select from the available workspaces/pages.
set_page <workspace> <page_name> <filename>
Save the specified page on the system.
add_attachment <workspace> <page_name> <filename>
Add the attachment to the specifed page on the system.
list_tags <workspace> <page_name>
List all tags on the specified page.
set_tags <workspace> <page_name> <tags>
Set the tags for the specified page name.
CONFIGURATION
In order to run correctly, strut needs to have a username, password, and server name. This can be configured in one of several ways:
Command line:
strut --username <username> --password <password> --server <server>
Environment variables:
STRUT_USERNAME
STRUT_PASSWORD
STRUT_SERVER
Configuration file:
~/.app/strut.conf
If strut can't determine your username/password/server, it will call the 'configure' subcommand to create a configuration file for you.
AUTHORS
<chris.dent@socialtext.com>
<kirsten.jones@socialtext.com>