PHPackages                             3f/eoc-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. 3f/eoc-cli

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

3f/eoc-cli
==========

CouchDB Command-Line Client.

0.5.4(8y ago)223Apache-2.0PHPPHP &gt;=5.6.0

Since Apr 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dedalozzo/eoc-cli)[ Packagist](https://packagist.org/packages/3f/eoc-cli)[ Docs](http://github.com/dedalozzo/eoc-cli)[ RSS](/packages/3f-eoc-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/2adb5486d13fd0bf5144a798c60a67842e5e8758daa86d692ed648854a6a1ce9/68747470733a2f2f706f7365722e707567782e6f72672f33662f656f632d636c692f762f737461626c652e706e67)](https://packagist.org/packages/3f/eoc-cli)[![Latest Unstable Version](https://camo.githubusercontent.com/2c08ae1b3a3d2135270bf6a8a2c739b900d1f0395c4217e06606b8405e7617b4/68747470733a2f2f706f7365722e707567782e6f72672f33662f656f632d636c692f762f756e737461626c652e706e67)](https://packagist.org/packages/3f/eoc-cli)[![Build Status](https://camo.githubusercontent.com/fdc211d1ac836fd282ec97286e03d91e034e74f99ee1a7a11c1a436e5f53d5a6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646564616c6f7a7a6f2f656f632d636c692f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dedalozzo/eoc-cli/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4b928a7c093e7d793b8baea2c2d5408df2ded8bc1cc63a921c3db635fdd185fa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646564616c6f7a7a6f2f656f632d636c692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dedalozzo/eoc-cli/?branch=master)[![License](https://camo.githubusercontent.com/a91fde9f2c1ba33386207dd9e8e06b323875ba00ae5ddc725dc4a454720f6b4f/68747470733a2f2f706f7365722e707567782e6f72672f33662f656f632d636c692f6c6963656e73652e737667)](https://packagist.org/packages/3f/eoc-cli)[![Total Downloads](https://camo.githubusercontent.com/e4d02eb3a6fc892f5bb5b8110c4422b272f7e203c63e4a588f282642a49d2d66/68747470733a2f2f706f7365722e707567782e6f72672f33662f656f632d636c692f646f776e6c6f6164732e706e67)](https://packagist.org/packages/3f/eoc-cli)

Elephant on Couch Command-Line Interface
========================================

[](#elephant-on-couch-command-line-interface)

EoC CLI is a CouchDB's Command-Line Interface (CLI) made in PHP programming language.

Composer Installation
---------------------

[](#composer-installation)

To install EoC CLI, you first need to install [Composer](http://getcomposer.org/), a Package Manager for PHP, following those few [steps](http://getcomposer.org/doc/00-intro.md#installation-nix):

```
curl -s https://getcomposer.org/installer | php
```

You can run this command to easily access composer from anywhere on your system:

```
sudo mv composer.phar /usr/local/bin/composer
```

EoC CLI Installation
--------------------

[](#eoc-cli-installation)

Once you have installed Composer, it's easy install Elephant on Couch CLI.

1. Move into the directory where you prefer install EoC CLI:

```
cd /usr/local
```

2. Create a project for EoC CLI:

```
sudo composer create-project 3f/eoc-cli
```

3. For your convenience create a symbolic link for the `couch` executable in your `/usr/local/bin` directory:

```
sudo ln -s /user/local/eoc-cli/bin/couch.php /usr/local/bin/couch
```

Supported Commands
------------------

[](#supported-commands)

Lists commands.

```
couch list [--xml] [--raw] [--format="..."] [namespace]
```

Displays help for a command.

```
couch help [--xml] [--format="..."] [--raw] [command_name]
```

Connects to CouchDB server.

```
couch connect [-s|--server[="..."]] user
```

Uses the specified database.

```
couch use database
```

Alias of `use`.

```
couch select database
```

Creates a new database.

```
couch create database
```

Deletes the specified database, if not in use.

```
couch delete database
```

Displays information about the selected database.

```
couch info
```

Starts a compaction for the current selected database or just a set of views.

```
couch compact [--design-doc="..."]
```

Removes all outdated view indexes.

```
couch cleanup
```

Makes sure all uncommited database changes are written and synchronized to the disk.

```
couch commit
```

Returns the tail of the server's log file.

```
couch log [--bytes[="..."]]
```

Restarts CouchDB server.

```
couch restart
```

Gets the list of active tasks.

```
couch status
```

Returns a list of generated UUIDs.

```
couch uuids [--count[="..."]]
```

Displays CouchDB server and client versions.

```
couch version
```

Returns a list of all databases on this server.

```
couch alldbs
```

Queries a view and outputs the result.

```
couch query [--key="..."] [--startkey="..."] [--endkey="..."] [--startkey-docid="..."]
[--endkey-docid="..."] [--limit="..."] [--group-results] [--group-level="..."]
[--do-not-reduce] [--include-docs] [--exclude-results] [--exclude-endkey]
[--reverse-order] [--skip="..."] [--include-conflicts] [--include-missing-keys]
[--map="..."] [--reduce="..."] [--language="..."] design-doc/view-name [keys1] ... [keysN]
```

Requirements
------------

[](#requirements)

PHP 5.4.7 or above. Shmop library is also required.

Authors
-------

[](#authors)

Filippo F. Fadda -  -

License
-------

[](#license)

Elephant on Couch Command-Line Interface is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~104 days

Recently: every ~148 days

Total

11

Last Release

2995d ago

PHP version history (2 changes)0.3.2PHP &gt;=5.4.0

0.5.4PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/311248?v=4)[Filippo Fadda](/maintainers/dedalozzo)[@dedalozzo](https://github.com/dedalozzo)

---

Top Contributors

[![dedalozzo](https://avatars.githubusercontent.com/u/311248?v=4)](https://github.com/dedalozzo "dedalozzo (186 commits)")

---

Tags

clicouchdbphpnosqlcouchdbcommand-line client

### Embed Badge

![Health badge](/badges/3f-eoc-cli/health.svg)

```
[![Health](https://phpackages.com/badges/3f-eoc-cli/health.svg)](https://phpackages.com/packages/3f-eoc-cli)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
