Netlify CLI api command
api
The api
command will let you call any Netlify open API methods
Run any Netlify API method For more information on available methods check out https://open-api.netlify.com/ or run ‘netlify api —list’
Usage
netlify api
Arguments
- apiMethod - Open API method to run
Flags
data
(string) - Data to uselist
(boolean) - List out available API methodsdebug
(boolean) - Print debugging informationauth
(string) - Netlify auth token - can be used to run this command without logging in
Examples
netlify api --listnetlify api getSite --data '{ "site_id": "123456" }'