#!/usr/bin/env perl

# PODNAME: ardb
# ABSTRACT: Command-line interface for ARC Raiders Database (ardb.app)

use strict;
use warnings;
use WWW::ARDB::CLI;

WWW::ARDB::CLI->new_with_cmd;

__END__

=pod

=encoding UTF-8

=head1 NAME

ardb - Command-line interface for ARC Raiders Database (ardb.app)

=head1 VERSION

version 0.002

=head1 SYNOPSIS

    ardb <command> [options]

    # List items
    ardb items
    ardb items --search guitar
    ardb items --rarity legendary
    ardb items --type weapon

    # Show item details
    ardb item acoustic_guitar

    # List quests
    ardb quests
    ardb quests --search supply
    ardb quests --trader shani

    # Show quest details
    ardb quest picking_up_the_pieces

    # List ARC enemies
    ardb enemies
    ardb enemies --search wasp

    # Show enemy details with drop table
    ardb enemy wasp

    # Output as JSON
    ardb items --json
    ardb enemy wasp -j

=head1 DESCRIPTION

This command-line tool provides access to the ARC Raiders Database API
at L<https://ardb.app>.

=head1 NAME

ardb - Command-line interface for ARC Raiders Database

=head1 GLOBAL OPTIONS

=over 4

=item B<--debug, -d>

Enable debug output showing API requests.

=item B<--no-cache>

Disable response caching.

=item B<--json, -j>

Output results as JSON instead of formatted text.

=back

=head1 COMMANDS

=head2 items

List all items in the database.

    ardb items [--search NAME] [--type TYPE] [--rarity RARITY]

=head2 item

Show details for a specific item.

    ardb item <id>

=head2 quests

List all quests.

    ardb quests [--search TITLE] [--trader NAME]

=head2 quest

Show details for a specific quest.

    ardb quest <id>

=head2 enemies

List all ARC enemies.

    ardb enemies [--search NAME]

=head2 enemy

Show details for a specific ARC enemy including drop table.

    ardb enemy <id>

=head1 ENVIRONMENT

=over 4

=item B<WWW_ARDB_DEBUG>

Set to 1 to enable debug output.

=back

=head1 ATTRIBUTION

Data provided by L<https://ardb.app>. Please credit ardb.app when using
this data in your applications.

=head1 SEE ALSO

L<WWW::ARDB>, L<https://ardb.app/developers/api>

=head1 SUPPORT

=head2 Issues

Please report bugs and feature requests on GitHub at
L<https://github.com/Getty/p5-www-ardb/issues>.

=head2 IRC

You can reach Getty on C<irc.perl.org> for questions and support.

=head1 CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

=head1 AUTHOR

Torsten Raudssus <torsten@raudssus.de>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut
