@@ -1044,7 +1126,11 @@ Available command-line options:
=head1 SYNTAX
Once running, Pepper provides a simple command line interface. The available commands are listed below. You can use the C<help> command to view this list when pepper is running.
Once running, Pepper provides a simple command line interface. The available commands are listed below.
=head2 Getting Help
Use C<help COMMAND> at any time to get information about that command. Where a command supports different object types (ie domain, host, contact), use C<help command-type>, ie C<help create-domain>.
=head2 Connection Management
...
...
@@ -1102,6 +1188,8 @@ Once running, Pepper provides a simple command line interface. The available com
=over
=item C<create domain PARAMS> - create a domain object. See L<Creating Domain Objects> for more information.
=item C<create host PARAMS> - create a host object. See L<Creating Host Objects> for more information.
=item C<clone TYPE OLD NEW> - clone a domain or contact object C<OLD> into a new object identified by C<NEW>. C<TYPE> is one of C<domain> or C<contact>.
...
...
@@ -1152,11 +1240,35 @@ C<COMMAND> must be one of: C<create>, C<renew>, C<transfer>, or C<restore>.
C<CURRENCY> is OPTIONAL but if provided, must be a three-character currency code.
C<PERIOD> is also OPTIONAL but if provided, must be an integer between 1 and 99.
=head2 Creating Domain and Contact Objects
=head2 Creating Objects
=head3 Creating Domain Objects
There are two ways of creating a domain:
clone domain OLD NEW
This command creates the domain C<NEW> using the same contacts and nameservers as C<OLD>.
Domain and contact objects can currently only be created using the C<clone> command.
create domain DOMAIN PARAMS
=head2 Creating Host Objects
This command creates a domain according to the parameters specified after the domain. C<PARAMS> consists of pairs of name and value pairs as follows:
=over
=item C<period PERIOD> - the registration period. Defaults to 1 year.
=item C<registrant ID> - the registrant.
=item C<(admin|tech|billing) ID> - the admin contact
=item C<ns HOST> - add a nameserver
=item C<authInfo pw> - authInfo code. A random string will be used if not provided.
=back
=head3 Creating Host Objects
Syntax:
...
...
@@ -1165,6 +1277,10 @@ Syntax:
Create a host object with the specified C<HOSTNAME>. IP address may also be
specified: IPv4 and IPv6 addresses are automatically detected.
=head3 Creating Contact Objects
Contact objects can currently only be created using the C<clone> command.
=head2 Object Updates
Objects may be updated using the C<update> command.
=item L<Net::EPP::Simple> (from L<Net::EPP>, which in turn uses L<IO::Socket::SSL> and L<XML::LibXML>)
=item L<Net::EPP::Simple> (from L<Net::EPP>, which in turn uses L<IO::Socket::SSL> and L<XML::LibXML>). Pepper usually requires the most recent "unstable" version which can be obtained from L<https://gitlab.centralnic.com/centralnic/perl-net-epp>.
=item L<Text::ParseWords>
...
...
@@ -1269,4 +1385,4 @@ Copyright CentralNic Group plc.
This program is Free Software; you can use it and/or modify it under the same terms as Perl itself.