Skip to content

Add the logs and deployments commands - #53

Open
mnapoli wants to merge 2 commits into
mainfrom
logs-and-deployments
Open

mnapoli wants to merge 2 commits into
mainfrom
logs-and-deployments

Conversation

@mnapoli

@mnapoli mnapoli commented Sep 23, 2026

Copy link
Copy Markdown
Member

New commands that show the data of an environment from Bref Cloud:

  • bref logs: search the logs of an environment by time range, text or regular expression, and function. The lines that Lambda and PHP-FPM write on every invocation are hidden, --all shows them. Monolog lines show their level, context and exception. --full shows the stack traces.
  • bref deployments: list the latest deployments of an environment.
  • bref deployments:show [id]: show a deployment. Without an ID, it shows the latest deployment of the environment.
  • bref deployments:logs [id]: show the logs of a deployment.

The commands detect AI agents with laravel/agent-detector. For an agent, the output has no colors or spinners, and the deployments are in JSON. --json gives JSON output for all the commands.

`bref logs`, `bref deployments`, `bref deployments:show` and `bref deployments:logs` show the data of an environment from Bref Cloud. They are for humans and for AI agents: an agent gets no colors or spinners, and JSON for the deployments. `--json` gives JSON output for all of them.

`--app` and `--team` identify the application without a config file, for these commands and for `secret:create`.

The CLI now requires PHP 8.2 (for laravel/agent-detector) and has a PHPUnit test suite.
The latest aws/aws-sdk-php types reject a null NextToken, which fails PHPStan.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant