OCC's parameters are not explained

what is the “–output” parameter in OCC?
it appears in many sub-comands in inline help
(example: ./occ user:info)

there is no man page, in line help is very bad and in the manual guide (PDF or HTML) is not mentioned
where can i read a decent man page for OCC?

https://docs.nextcloud.com/server/10/admin_manual/configuration_server/occ_command.html

Not sure if you meant that with HTML manual guide. If you think this guide is not complete enough, make a bug report on:

1 Like

Sample:

occ status
  - installed: true
  - version: 9.0.0.19
  - versionstring: 9.0.0
  - edition:

occ status --output=json
{"installed":true,"version":"9.0.0.19","versionstring":"9.0.0","edition":""}

occ status --output=json_pretty
{
   "installed": true,
   "version": "9.0.0.19",
   "versionstring": "9.0.0",
   "edition": ""
}
1 Like