---
title: "Artisan commands — Metrics for Laravel | Roundly"
description: "List every registered metric and resolve one from the terminal to inspect its envelope, with an optional range override."
url: https://roundly-consulting.com/open-source/docs/metrics-for-laravel/commands
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Metrics for Laravel](https://roundly-consulting.com/open-source/docs/metrics-for-laravel.md)

# Artisan commands

Two commands inspect the registry from the CLI:

```bash
php artisan metrics:list              # every registered key and its class
php artisan metrics:show users        # resolve "users" and print its envelope
php artisan metrics:show users --range=MTD
```

- metrics:list — prints every registered key and its resolved class in a table; warns when nothing is registered.
- metrics:show {key} {--range=} — resolves a registered metric and prints its envelope as pretty JSON. --range overrides the metric’s range; an unregistered key exits with a failure code.

```
+------------------+-----------------------------+
| Key              | Metric                      |
+------------------+-----------------------------+
| registered_users | App\Metrics\RegisteredUsers |
| revenue          | App\Metrics\MonthlyRevenue  |
+------------------+-----------------------------+
```

## php artisan about

The package adds a Metrics section to php artisan about with the registered metric count, the result-cache state (ENABLED or OFF) and the default range.

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/metrics-for-laravel.md)
