Closed thepandaguitar closed 3 years ago
You can specify the output to be a file:
CAPROVER_CONFIG_FILE='./config.json' caprover api -o output.json
If you do this, you only get the json response in the file
@githubsaturn Fantastic! Thank you so much for your help 💯
Hi @githubsaturn,
I want to update the Container HTTP Port using API. I noticed that you need to send the whole app definition in order to do that. However, getting the app definition using
caprover api
returns text which is not convenient for using the data in subsequent calls.For the
api
command in particular, I think it makes more sense to have it return valid JSON. Do you think this is a possible change?I am still not very familiar with the API yet, so before I do any parsing, I want to ask you if you have any ideas on how to update Container HTTP Ports?
Thank you @githubsaturn!