Hello there! <Pact-Cli> docs/help for `describe-ve...
# pact-broker
m
Hello there! Pact-Cli docs/help for
describe-version
mention
--environment
, but when I run it the command errors. From what I can tell, this may be a version mismatch or unsupported option in the CLI build I’m using Version is 1.77.0 and I pull lates from docker.
➜  ~ pact-broker describe-version --pacticipant test --broker-base-url=$PACT_BROKER_URL --environment production --deployed
Unknown switches "--environment", "--deployed"
This is a warning rather than an error so as not to break backwards compatibility. To raise an error for unknown options set PACT_BROKER_ERROR_ON_UNKNOWN_OPTION=true
ERROR: "pact-broker describe_version" was called with arguments ["--environment", "production", "--deployed"]
Usage: "pact-broker describe-version -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL"
Is
describe-version --environment
expected to work in current Pact CLI version?
Sounds like I should use https://github.com/pact-foundation/pact-broker-cli instead, since it is designed as a replacement for the pact_broker-client application, written in Ruby.
y
Hiya, Yes sorry, I had only implemented this feature in the rewritten cli despite the initial feature request being in the ruby repo https://github.com/pact-foundation/pact-broker-cli/pull/18 you can either download it as standalone or part of the combined cli which contains the broker and all pact rust cli’s ( mock, verifier, stub, plugin )
m
All good, I used pact-broker-cli new version, kudos for improved output!