PHPackages                             ride/cli-database - 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. ride/cli-database

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

ride/cli-database
=================

Database commands for the Ride CLI

1.1.0(3mo ago)04.4kMITPHP

Since Jan 14Pushed 3mo ago7 watchersCompare

[ Source](https://github.com/all-ride/ride-cli-database)[ Packagist](https://packagist.org/packages/ride/cli-database)[ RSS](/packages/ride-cli-database/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (11)Used By (0)

Ride: Database CLI
==================

[](#ride-database-cli)

This module adds various database commands to the Ride CLI.

Commands
--------

[](#commands)

### database

[](#database)

This command shows an overview of the database connections in the manager.

**Syntax**: `database`

**Alias**: `db`

### database convert utf8

[](#database-convert-utf8)

This command converts all tables from the provided database connection to UTF-8.

**Syntax**: `database convert utf8 `

- ``: Name of the connection

**Alias**: `dbutf8`

### database create

[](#database-create)

This command creates the database on the server of the connection if it does not exist.

**Syntax**: `database create [ [ []]]`

- ``: Name of the connection
- ``: Default charset for the database (default utf8)
- ``: Default collation for the database (default utf8\_general\_ci)

**Alias**: `dbc`

### database default

[](#database-default)

This command gets or sets the name of the default database connection.

**Syntax**: `database default `

- ``: Name of the connection

**Alias**: `dbdef`

### database drop

[](#database-drop)

This command drops the database on the server of the connection if it exists.

**Syntax**: `database drop `

- ``: Name of the connection

**Alias**: dbdr

### database add

[](#database-add)

This command registers a database connection in the manager.

**Syntax**: `database add  `

- ``: Name for the connection
- ``: DSN of the connection (protocol://username:password@host:port/database)

**Alias**: `dba`

### database status

[](#database-status)

This command gets the status of a connection.

**Syntax**: `database status []`

- ``: Name of the connection

**Alias**: `dbs`

### database delete

[](#database-delete)

This command unregisters a database connection from the manager.

**Syntax**: `database delete `

- ``: Name for the connection

**Alias**: `dbd`

### database driver

[](#database-driver)

This command shows an overview of the available database drivers.

**Syntax**: `database driver`

### database query

[](#database-query)

This command executes a SQL query on the default database connection.

**Syntax**: `database query [--connection] []`

- `--connection`: Name of the connection to use
- ``: The SQL script to execute

**Alias**: `dbq` or `query`

Related Modules
---------------

[](#related-modules)

- [ride/app](https://github.com/all-ride/ride-app)
- [ride/app-database](https://github.com/all-ride/ride-app-database)
- [ride/cli](https://github.com/all-ride/ride-cli)
- [ride/lib-cli](https://github.com/all-ride/ride-lib-cli)
- [ride/lib-database](https://github.com/all-ride/ride-lib-database)
- [ride/lib-log](https://github.com/all-ride/ride-lib-log)

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

[](#installation)

You can use [Composer](http://getcomposer.org) to install this application.

```
composer require ride/cli-database

```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance79

Regular maintenance activity

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 87% 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 ~549 days

Recently: every ~944 days

Total

9

Last Release

109d ago

Major Versions

0.3.2 → 1.0.02016-10-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d98d3f0d5db5eb241c6ee74bcee87d1e7dc1aaf7942b933d68e612ee2352eea?d=identicon)[ride-user](/maintainers/ride-user)

---

Top Contributors

[![kayalion](https://avatars.githubusercontent.com/u/2340819?v=4)](https://github.com/kayalion "kayalion (20 commits)")[![kristofser](https://avatars.githubusercontent.com/u/5928907?v=4)](https://github.com/kristofser "kristofser (3 commits)")

### Embed Badge

![Health badge](/badges/ride-cli-database/health.svg)

```
[![Health](https://phpackages.com/badges/ride-cli-database/health.svg)](https://phpackages.com/packages/ride-cli-database)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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