Closed srinandan closed 1 month ago
OK, so update works better.
One other issue, --file and --source-uri are mutually exclusive
gorun --org=$ORG --region=us-central1 apihub apis versions specs update \ > --api-id=apigeecli-api-v1 \ > --id=spec-v1_0_0 \ > --version=v1_0_0 \ > --display-name="spec-v1_0_0 updated via CLI" \ > --file=apihub/foodtrucks.yaml \ > --source-uri=https://developeri.kurtkanaskie.net/portals/api/sites/apigeex-mint-kurt-exco/liveportal/apis/food-trucks-v1-dev/download_spec Error: contents and sourceURI cannot be set together exit status 1
And just using --source-uri throws error
gorun --org=$ORG --region=us-central1 apihub apis versions specs update \ > --api-id=apigeecli-api-v1 \ > --id=spec-v1_0_0 \ > --version=v1_0_0 \ > --display-name="spec-v1_0_0 updated via CLI" \ > --source-uri=https://developeri.kurtkanaskie.net/portals/api/sites/apigeex-mint-kurt-exco/liveportal/apis/food-trucks-v1-dev/download_spec Error: required flag(s) "file" not set
OK, so update works better.
One other issue, --file and --source-uri are mutually exclusive
And just using --source-uri throws error