Skip to content

Add services pcport command#2784

Open
elliotthilaire-ca wants to merge 1 commit intojetify-com:mainfrom
elliotthilaire-ca:add-services-pcport-command
Open

Add services pcport command#2784
elliotthilaire-ca wants to merge 1 commit intojetify-com:mainfrom
elliotthilaire-ca:add-services-pcport-command

Conversation

@elliotthilaire-ca
Copy link

@elliotthilaire-ca elliotthilaire-ca commented Feb 19, 2026

Closes #2783

Summary

This command returns the port that process-compose is running on. That makes it more feasible to use the process-compose api in scripting.

For example:

pcport=$(devbox services pcport)
curl http://localhost:$pcport/process/good-server | jq ".status, .is_ready"

How was it tested?

With process-compose running:

$ dist/devbox services pcport
53173

$ echo $?
0

With process-compose stopped:

$ dist/devbox services pcport

Error: process-compose is not running or it's config is missing. To start it, run `devbox services up`
source: failed to find projectDir /Users/elliott.hilaire/github.com/elliotthilaire-ca/devbox in config.Instances

$ echo $?
1

Community Contribution License

All community contributions in this pull request are licensed to the project
maintainers under the terms of the
Apache 2 License.

By creating this pull request, I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 License as stated in
the
Community Contribution License.

AI disclosure

Claude code assisted in creating this PR.

This command returns the port that process-compose is running on. That
makes it more feasible to use the process-compose api in scripting.

For example:
```
pcport=$(dist/devbox services pcport)
curl http://localhost:$pcport/process/good-server | jq ".status,
.is_ready"
```
@elliotthilaire-ca
Copy link
Author

elliotthilaire-ca commented Feb 19, 2026

This PR potentially closes #2453 as once the process-compose port is fetched the status of individial processes can be checked using the api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add a devbox services pcport command

1 participant

Comments