Skip to content

feat: add environment:variables delete action and metrics commands#72

Open
JoshSalway wants to merge 1 commit intolaravel:mainfrom
JoshSalway:feature/delete-vars-and-metrics
Open

feat: add environment:variables delete action and metrics commands#72
JoshSalway wants to merge 1 commit intolaravel:mainfrom
JoshSalway:feature/delete-vars-and-metrics

Conversation

@JoshSalway
Copy link

Summary

Details

Part 1: environment:variables --delete

  • New delete action in the interactive action selector
  • In non-interactive mode: --action=delete --key=VAR_NAME --force
  • Supports multiple --key flags to delete several variables at once
  • Requires --force in non-interactive mode for safety
  • Interactive mode prompts for key names and confirmation

Part 2: Metrics commands

  • Each command resolves the resource, fetches metrics from the API, and displays as a table (interactive) or JSON (non-interactive/--json)
  • Follows the same pattern as existing *:get commands

Test plan

  • ./vendor/bin/pest passes (39 tests, 40 assertions)
  • ./vendor/bin/phpstan analyse passes (0 errors)
  • Manual testing against the Laravel Cloud API

🤖 Generated with Claude Code

- Add `delete` action to `environment:variables` command, accepting
  `--key` flag(s) to specify which variables to remove (laravel#67)
- Add metrics commands for cache, database-cluster, environment,
  websocket-application, and websocket-cluster resources (laravel#68)
- Create corresponding API request classes and resource methods
- Add tests for all new functionality

Closes laravel#67, laravel#68, laravel#69

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant