How to explore API from command line?
The graphical api explorer actually fetches all its information about the api from the api. Since the CiviCRM api is available from the command line, you can explore it using the same methods.


Fetch the list of entities:

$ cv api Entity.get
List available actions for an entity:

$ cv api Activity.getactions
Get fields for an entity/action:

$ cv api Activity.getfields action=create