You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: The wp, exec and logs commands do not accept flags for the container #4
WP-CLI is the most frequent daily task. Most WP-CLI commands with flags do not operate.
Users must know about --. The documentation does not tell them.
During an incident, users cannot follow the logs of one container.
On OpenLiteSpeed sites, fly exec without a service name does not operate.
Benefit of the fix
WP-CLI and container commands operate with their usual flags.
Users can follow the logs of one container.
fly exec operates on PHP sites and on OpenLiteSpeed sites.
Fix
Call Flags().SetInterspersed(false) on wp and exec. Then, all arguments after the first positional argument go to the container. --domain must come before them.
For logs, add -f/--follow and --tail. As an alternative, send the arguments to Docker Compose without change.
For exec, select the default service with the same detection as wp (getContainerName).
Completion checks
The first three commands in "Defect" operate.
fly --domain example.com wp plugin list --format=json operates.
fly exec ls on an OpenLiteSpeed site uses the openlitespeed service.
changed the title [-]The wp, exec and logs commands do not accept flags for the container[/-][+]bug: The wp, exec and logs commands do not accept flags for the container[/+]on Oct 1, 2026
Activity
fix(site): pass flags through to wp-cli, exec and logs (#20)
[-]The wp, exec and logs commands do not accept flags for the container[/-][+]bug: The wp, exec and logs commands do not accept flags for the container[/+]