anil614sagar / openapi2apigee

OpenAPI to Apigee API Proxy using Node.js Utility
MIT License
33 stars 45 forks source link

Ability to specify the command line options within the command itself #29

Closed jonesr91 closed 7 years ago

jonesr91 commented 7 years ago

Is it possible to specify the command options (Base URI | Organization | User Id | Password | Environments | Virtual Hosts) within the command itself?

I'd like to run an automated script to deploy to a test environment, which doesn't require any user input.

For example: openapi2apigee generateApi myTestAPI --source mySwagger.json --deploy --baseuri https://api.enterprise.apigee.com --organization test --username test@test.com --password test --environments test --virtualhosts default

jonesr91 commented 7 years ago

Apologies, I figured this out.

The example given above does work - I had been trying various different commands and the above one hadn't been tested prior to submitting this ticket.

anil614sagar commented 7 years ago

@jonesr91 , Yes, It does support , See the file here

anil614sagar commented 7 years ago

@jonesr91 , No Issues, Glad you found it, You beat my answer by few seconds :)