PHPackages                             surgiie/dusk-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. surgiie/dusk-cli

Abandoned → [surgiie/illuminate-cli](/?search=surgiie%2Filluminate-cli)ArchivedProject

surgiie/dusk-cli
================

A cli for using Laravel Dusk (Chrome Driver).

v0.1.0(1y ago)216MITPHPPHP ^8.2

Since Feb 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/surgiie/dusk-cli)[ Packagist](https://packagist.org/packages/surgiie/dusk-cli)[ RSS](/packages/surgiie-dusk-cli/feed)WikiDiscussions main Synced 1mo ago

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

dusk-cli
========

[](#dusk-cli)

A php command line interface for [Laravel Dusk](https://laravel.com/docs/10.x/dusk).

**Note** - This is a work in progress and is not ready for production use.

Abandoned
=========

[](#abandoned)

This has moved and been reworked and is no longer maintained, please use [illuminate-cli](https://github.com/surgiie/illuminate-cli)

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

[](#installation)

- Install Chrome:
- Install CLI:

```
# install locally and set up an alias or add ./vendor/bin to your $PATH
composer install surgiie/dusk-cli
# or install globally
composer global require surgiie/dusk-cli
```

- Install Driver:

```
dusk install:chrome-driver
```

**Note:** If using wsl2 on windows, you need to install chrome in the linux subsystem.

Usage
-----

[](#usage)

```
dusk visit https://google.com

```

Perform Actions
---------------

[](#perform-actions)

All methods in the [Laravel Dusk API](https://laravel.com/docs/11.x/dusk) are performed by passing the method name as a kebab case command option.

For example, to call the `assertSee` method, you would use the `--assert-see` option:

```
dusk visit https://laravel.com --assert-see="Laravel"
```

**Note** - Please note that all actions have NOT been tested thoroughly and some actions may not be supported so please report any issues you find.

### Passing Arguments To Methods.

[](#passing-arguments-to-methods)

When passing options to call methods that accept more than one argument, you can pass arguments to the methods by separating them with a comma.

For example, when using the `--assert-query-string-has` option:

```
dusk visit https://example.com --assert-query-string-has="q,pizza"
```

This will call the `assertQueryStringHas` method with the arguments `q` and `pizza` as follows:

```
$browser->assertQueryStringHas('q', 'pizza');
```

#### Escaping Commas

[](#escaping-commas)

If you dont want to the cli to mistake a literal comma delimited string as function arguments, use the `\` character on each comma in the string to escape it:

```
# will be interpreted as single argument of "foo,bar,baz"
dusk visit https://example.com --assert-see="foo\,bar\,baz"
```

Screenshots
-----------

[](#screenshots)

To take a screenshot, use the `--screenshot` option:

```
dusk visit https://example.com --screenshot="/home/your-user/example.png"
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance45

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

462d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87e7d9a71eca01aac132fec3f1cdda21e373c87662d8998981412333acd828b6?d=identicon)[surgiie](/maintainers/surgiie)

---

Top Contributors

[![surgiie](https://avatars.githubusercontent.com/u/12025002?v=4)](https://github.com/surgiie "surgiie (3 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/surgiie-dusk-cli/health.svg)

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

###  Alternatives

[laravel-zero/laravel-zero

The Laravel Zero Framework.

3.9k43.3k3](/packages/laravel-zero-laravel-zero)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[filament/support

Core helper methods and foundation code for all Filament packages.

2323.9M151](/packages/filament-support)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[oneduo/nova-file-manager

A handy file manager tool for Laravel Nova

157350.3k2](/packages/oneduo-nova-file-manager)

PHPackages © 2026

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