PHPackages                             skulich/laravel-user-token-management-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. skulich/laravel-user-token-management-cli

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

skulich/laravel-user-token-management-cli
=========================================

A Laravel package that allows managing Users and their Tokens from CLI

1.2.0(1mo ago)066MITPHPPHP ^8.3CI passing

Since Dec 21Pushed 4mo agoCompare

[ Source](https://github.com/skulich/laravel-user-token-management-cli)[ Packagist](https://packagist.org/packages/skulich/laravel-user-token-management-cli)[ RSS](/packages/skulich-laravel-user-token-management-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (24)Versions (6)Used By (0)

Laravel User Token Management CLI
=================================

[](#laravel-user-token-management-cli)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5358ca3fc150cfce9e40bee1f2a5a4beed6c0b66805043458e8c8bafb4cf9ed2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736b756c6963682f6c61726176656c2d757365722d746f6b656e2d6d616e6167656d656e742d636c692e737667)](https://packagist.org/packages/skulich/laravel-user-token-management-cli)[![PHP Version Require](https://camo.githubusercontent.com/255e41a0a79a91fe82e612a6c70fe28515247363fb506d4bd7a3e8ae46b9e670/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736b756c6963682f6c61726176656c2d757365722d746f6b656e2d6d616e6167656d656e742d636c69)](https://camo.githubusercontent.com/255e41a0a79a91fe82e612a6c70fe28515247363fb506d4bd7a3e8ae46b9e670/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736b756c6963682f6c61726176656c2d757365722d746f6b656e2d6d616e6167656d656e742d636c69)[![Laravel Version](https://camo.githubusercontent.com/06b665553c47eeccb1b78de1027bca7a2f0cf5f8d13226bd3eb8d30c3a19c628/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531322e302532302d7265643f6c6f676f3d6c61726176656c)](https://camo.githubusercontent.com/06b665553c47eeccb1b78de1027bca7a2f0cf5f8d13226bd3eb8d30c3a19c628/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531322e302532302d7265643f6c6f676f3d6c61726176656c)[![Run Tests](https://github.com/skulich/laravel-user-token-management-cli/actions/workflows/tests.yml/badge.svg)](https://github.com/skulich/laravel-user-token-management-cli/actions)[![Code Coverage](https://camo.githubusercontent.com/32855e94577df9d0a30995653b17d33a5fbfdf644518f96ea0374313397d19b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e)](https://camo.githubusercontent.com/32855e94577df9d0a30995653b17d33a5fbfdf644518f96ea0374313397d19b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e)[![License](https://camo.githubusercontent.com/ac65492c4c6ec28ae4240b12746864845b4e21c91efc072fc8ba44ba3537a259/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736b756c6963682f6c61726176656c2d757365722d746f6b656e2d6d616e6167656d656e742d636c692e737667)](https://camo.githubusercontent.com/ac65492c4c6ec28ae4240b12746864845b4e21c91efc072fc8ba44ba3537a259/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736b756c6963682f6c61726176656c2d757365722d746f6b656e2d6d616e6167656d656e742d636c692e737667)[![Total Downloads](https://camo.githubusercontent.com/c39b13fd677f9b8e749e1aa3524f291d99133314306b713a4d305b253ccf5d30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736b756c6963682f6c61726176656c2d757365722d746f6b656e2d6d616e6167656d656e742d636c692e737667)](https://camo.githubusercontent.com/c39b13fd677f9b8e749e1aa3524f291d99133314306b713a4d305b253ccf5d30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736b756c6963682f6c61726176656c2d757365722d746f6b656e2d6d616e6167656d656e742d636c692e737667)

A Laravel package that lets you create and delete users and tokens from the CLI.

This can be useful for API microservices where only one user is needed to access the API.

> **Note:**User token commands are available only when `Sanctum` is installed and the `User` model is tokenable.

> **Note:**This package provides only basic token support. It does not support abilities, expiration, etc.

Table of contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [User Commands](#user-commands)
    - [User Token Commands](#user-token-commands)
- [User Model Binding](#user-model-binding)
- [Tests](#tests)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

Install the package via Composer.

```
composer require skulich/laravel-user-token-management-cli
```

Usage
-----

[](#usage)

The package provides five Artisan commands to manage users and their tokens.

### User Commands

[](#user-commands)

Run these Artisan commands to manage users.

```
# create a new user
php artisan user:create

# delete a user
php artisan user:delete

# list users
php artisan user:list
```

### User Token Commands

[](#user-token-commands)

Run these Artisan commands to manage user tokens.

```
# create a new token for the user
php artisan user:token:create

# delete tokens for the user
php artisan user:token:delete

# list user tokens
php artisan user:token:list
```

User Model Binding
------------------

[](#user-model-binding)

If your `User` model class is not located in the `App\Models\User` namespace, you must bind `App\Models\User` to your implementation in the `boot()` method of `AppServiceProvider`.

```
namespace App\Providers;

class AppServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        app()->bind('\App\Models\User', fn () => resolve('\App\User'), true);
    }
}
```

Tests
-----

[](#tests)

Run the entire test suite:

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for more information.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance81

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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 ~25 days

Total

5

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/19b0704d357e2e3bcbdbfd53e191d96eb4e0417e9b13e4a56f6f8367153eab32?d=identicon)[skulich](/maintainers/skulich)

---

Top Contributors

[![skulich](https://avatars.githubusercontent.com/u/170199581?v=4)](https://github.com/skulich "skulich (25 commits)")

---

Tags

laraveltokenuser

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/skulich-laravel-user-token-management-cli/health.svg)

```
[![Health](https://phpackages.com/badges/skulich-laravel-user-token-management-cli/health.svg)](https://phpackages.com/packages/skulich-laravel-user-token-management-cli)
```

###  Alternatives

[phpsa/filament-authentication

User &amp; Role (via Spatie Roles/Permissions) Manager Resource For Filament Admin

12663.6k](/packages/phpsa-filament-authentication)[phpsa/filament-password-reveal

Password Input with option to show

51143.4k2](/packages/phpsa-filament-password-reveal)[rap2hpoutre/create-user-command

Create a user with artisan command

2012.9k](/packages/rap2hpoutre-create-user-command)[phpsa/filament-dadjokes

With DadJokes every time you load your control panel you'll be greeted by an epic dad joke on the dashboard.

1714.1k](/packages/phpsa-filament-dadjokes)[jsdecena/laravel-passport-multiauth

Simple laravel passport multiple user authentication

501.1k](/packages/jsdecena-laravel-passport-multiauth)[mwguerra/web-terminal

A web-based terminal component for Filament/Laravel with command whitelisting and multiple connection types

251.1k](/packages/mwguerra-web-terminal)

PHPackages © 2026

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