PHPackages                             shift31/hostbase-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. shift31/hostbase-cli

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

shift31/hostbase-cli
====================

The Hostbase CLI

0.2.0(11y ago)04MITPHP

Since Mar 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/shift31/hostbase-cli)[ Packagist](https://packagist.org/packages/shift31/hostbase-cli)[ RSS](/packages/shift31-hostbase-cli/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Hostbase Command Line Client
============================

[](#hostbase-command-line-client)

The [Hostbase](https://github.com/shift31/hostbase) CLI features full-text search (using Elasticsearch/Lucene query syntax) and basic CRUD operations, which accept JSON.

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Help](#help)
    - [Add a host](#add-a-host)
    - [Update a host](#update-a-host)
    - [Find a host by FQDN](#find-a-host-by-fqdn)
    - [Search for a host](#search-for-a-host)
    - [Delete a host](#delete-a-host)
    - [Other entities](#other-entities)
    - [Laravel Envoy](#laravel-envoy)

Installation
------------

[](#installation)

1. Download the PHAR:
2. Move it to /usr/local/sbin and rename it to 'hostbase'
3. Make it executable:

    ```
    chmod +x /usr/local/sbin/hostbase
    ```

Configuration
-------------

[](#configuration)

Create hostbase-cli.config.php in /etc or your home directory:

```
