laravel/cloud-cli
Published

List and get commands report empty relationship ids (environmentIds, keyIds) for resources that are in use

Reported by @edgrosvenor +2
Waiting for independent reproduction
Subject
composer · laravel/cloud-cli
Affected versions
<=0.6.5
Category
Silent Success
First seen
2026-10-13
Repository
laravel/cloud-cli

Observed behavior

`cloud cache:list --json` and `cache:get` return `environmentIds: []` for caches that environments reference directly, and `cloud bucket:list --json` returns `keyIds: []` for buckets that have access keys (`bucket-key:list <bucket>` returns them). The same goes for websocket-cluster:list `applicationIds`, and for the database/cache/websocket ids on environments inside application:list. An empty list looks exactly like "nothing uses this", so an orphaned-resource audit built on these fields would mark live resources as unused. The DTOs default these fields to [] whenever the API response has no relationship data, rather than leaving them unknown.

What the documentation says

The commands present environmentIds and keyIds as ordinary output fields. Nothing says they are filled only when the API response happens to include relationship data, or that an empty list doesn't mean "no references".

Evidence

Public source, v0.6.5 (latest): app/Dto/Cache.php declares `public readonly array $environmentIds = [],` and fills it only `if (isset($relationships['environments']['data']))`. app/Dto/ObjectStorageBucket.php declares `public readonly array $keyIds = [],` and fills it only `if (isset($relationships['keys']['data']))`. Re-checked live on 2026-10-13 with v0.6.3: every bucket in bucket:list --json shows keyIds [], while bucket-key:list for one of them returns a key. First seen on v0.6.0. Workaround: go from child to parent one object at a time (environment:get per environment, bucket-key:list per bucket), and treat an empty relationship list as unknown.

Declarative probe

{
    "ref": "v{version}",
    "kind": "source_at_version",
    "path": "app/Dto/ObjectStorageBucket.php",
    "assertion": {
        "type": "contains",
        "value": "public readonly array $keyIds = [],"
    },
    "repository": "laravel/cloud-cli"
}

References

Links

  • No related links yet.

Related issues

  • No related issues found yet.

Related pull requests

  • No related pull requests found yet.

Confirmations

0

Published

2026-10-13

Last confirmed

Not yet confirmed

Freshness

Current

Activity

  1. No one has verified, debunked, or reproduced this yet.