Beagle::Manual::Tutorial - Tutorial
Beagle requires git, so please make sure you have it installed.
Beagle
Beagle is a plain CPAN module, so you can install it via CPAN or CPANPLUS or App::cpanminus:
$ cpan Beagle $ cpanp -i Beagle $ cpanm Beagle
$ beagle config --init
create a beagle:
$ beagle init /tmp/foo.git --bare
clone it into Beagle's kennel
$ beagle follow /tmp/foo.git
you can follow it from another box too, as it's a plain git repository.
$ beagle help $ beagle ls # no output as we haven't created anything $ beagle info -n foo --edit # edit foo's info $ beagle article -n foo --title homer --body doh $ beagle bark -n foo 'bart is a good boy' $ beagle ls $ beagle articles $ beagle barks $ beagle cat id1 $ beagle update id1 $ beagle rm id1
$ beagle pull -n foo # from original /tmp/foo.git $ beagle push -n foo # to original /tmp/foo.git $ beagle spread id1 --command command --template-file short $ beagle help spread
$ beagle web -n foo $ beagle web -n foo --port 8080
it's annoying if we have to specify the beagle name by -n foo in commands, here are some ways to avoid this:
-n foo
$ export BEAGLE_NAME=foo
it's in share root of Beagle, which supplies 3 extra "commands": which, use and switch.
which
use
switch
which shows current beagle name, switch switches default beagle, use switches default beagle only in current session.
$ beagle which $ beagle switch foo $ beagle use foo
Beagle, Beagle::Manual::ENV, Beagle::Manual::Cookbook
sunnavy <sunnavy@gmail.com>
Copyright 2011 sunnavy@gmail.com This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Beagle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Beagle
CPAN shell
perl -MCPAN -e shell install Beagle
For more information on module installation, please visit the detailed CPAN module installation guide.