oi2_manage - Command-line interface to OpenInteract management tasks
oi2_manage [task] [options]
To see all tasks:
$ oi2_manage list_tasks
See options and their description for a particular task:
$ oi2_manage task_info --task=foo
Common options:
--website_dir - Directory of website (can use 'OPENINTERACT2' env instead) --source_dir - Directory of OI2 source (at least pkg/ and sample/ dirs) --package - One or more packages to operate on --package_dir - Directory for package --package_file - Package distribution file (eg, 'base_page-2.51.zip') --status - View more numerous status messages instead of progress messages --debug - Turn debugging on
Example: Install a website:
$ cd /opt/OpenInteract-2.05 $ oi2_manage create_website --website_dir=/home/httpd/mysite
Example: Install a package to a website using OPENINTERACT2 env instead of --website_dir:
OPENINTERACT2
--website_dir
$ export OPENINTERACT2=/home/httpd/mysite $ oi2_manage install_package --package_file=/path/to/mypackage_1.00.zip
Example: Export a package
$ cd /path/to/my/package $ oi2_manage export_package
Example: Check a package
$ cd /path/to/my/package $ oi2_manage check_package
Example: Create the skeleton for a new package
$ cd /path/to/my/workdir $ oi2_manage create_package --package=foopkg --source_dir=/opt/OpenInteract-2.05
This is the command-line interface to the OpenInteract2::Manage module and all of its associated tasks. Since this is a simple shell around the management tasks it doesn't list all the tasks. (The docs here and the tasks would soon get out of sync.) Instead, just run:
oi2_manage list_tasks
And you'll get a list of tasks with a brief description for each. Guaranteed to be up-to-date.
You can find the optional and required parameters for a particular task with:
oi2_manage task_info --task=create_website
Note that all progress and status messages are sent to STDERR, so if you have a task that outputs data to STDOUT you might wish to do something like the following to separate them out. Here we send the progress/status messages to the dustbin:
oi2_manage export_data --spops=user --format=xml 2>/dev/null
OpenInteract2::Manual::Management
OpenInteract2::Manage
Copyright (c) 2002-2005 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
To install OpenInteract2::URL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenInteract2::URL
CPAN shell
perl -MCPAN -e shell install OpenInteract2::URL
For more information on module installation, please visit the detailed CPAN module installation guide.