PHPackages                             hypejunction/elgg-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. hypejunction/elgg-cli

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

hypejunction/elgg-cli
=====================

A set of CLI tools for Elgg

1.2.1(8y ago)16291[2 issues](https://github.com/hypeJunction/elgg-cli/issues)[1 PRs](https://github.com/hypeJunction/elgg-cli/pulls)GPL-2.0PHP

Since Jul 29Pushed 8y ago2 watchersCompare

[ Source](https://github.com/hypeJunction/elgg-cli)[ Packagist](https://packagist.org/packages/hypejunction/elgg-cli)[ RSS](/packages/hypejunction-elgg-cli/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

CLI Tools for Elgg
==================

[](#cli-tools-for-elgg)

[![Elgg 2.2](https://camo.githubusercontent.com/148c650889d460381b7382e5c59de2498a863c5156f86d83b667697471128e2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e322d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/148c650889d460381b7382e5c59de2498a863c5156f86d83b667697471128e2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e322d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

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

[](#installation)

### Project Scope

[](#project-scope)

```
cd /path/to/elgg/
composer require hypejunction/elgg-cli:~1.0
vendor/bin/elgg-cli --help
```

### Global Scope

[](#global-scope)

```
composer global require hypejunction/elgg-cli:~1.0
cd /path/to/elgg
# if you have composer bin in your environment variables use the shortcut
elgg-cli --help
```

Run Commands
------------

[](#run-commands)

```
cd /path/to/elgg/

# Get help
vendor/bin/elgg-cli --help

# List all commands
vendor/bin/elgg-cli list

# Install Elgg
vendor/bin/elgg-cli install

# Flush caches
vendor/bin/elgg-cli site:flush_cache

# Run upgrades
vendor/bin/elgg-cli site:upgrade

# Activate plugins
vendor/bin/elgg-cli plugins:activate [--all]

# Deactivate plugins
vendor/bin/elgg-cli plugins:deactivate [--all]

# Add a new user
vendor/bin/elgg-cli user:add [--admin] [--notify]

# Display or change site URL
vendor/bin/elgg-cli site:url

# Display or change root path
vendor/bin/elgg-cli config:path

# Display or change data directory path
vendor/bin/elgg-cli config:dataroot

# Request a page
vendor/bin/elgg-cli route   [--tokens] [--export] [--as]

# Execute an action
vendor/bin/elgg-cli action  [--as]

# Run cron
vendor/bin/elgg-cli route cron/run

# List/search entities
vendor/bin/elgg-cli entities:get [--guid] [--type] [--subtype] [--limit] [--offset] [--keyword] [--full-view]
```

Custom Commands
---------------

[](#custom-commands)

Plugins can add their commands to the CLI application, by adding command class name via `'commands','cli'` hoook. Command class must extend `\Symfony\Component\Console\Command\Command`.

```
class MyCommand extends \Symfony\Component\Console\Command\Command {}

elgg_register_plugin_hook_handler('commands', 'cli', function($hook, $type, $return) {
	$return[] = MyCommand::class;
	return $return;
});
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 94.9% 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 ~113 days

Total

4

Last Release

3281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (37 commits)")[![hectorespert](https://avatars.githubusercontent.com/u/4323228?v=4)](https://github.com/hectorespert "hectorespert (1 commits)")[![Yaco](https://avatars.githubusercontent.com/u/139963?v=4)](https://github.com/Yaco "Yaco (1 commits)")

### Embed Badge

![Health badge](/badges/hypejunction-elgg-cli/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[psy/psysh

An interactive shell for modern PHP.

9.8k569.8M787](/packages/psy-psysh)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[spatie/laravel-flare

Send Laravel errors to Flare

111.2M6](/packages/spatie-laravel-flare)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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