Standard output and standard error
Standard output carries the result. Progress, warnings, the confirmation and error messages go to standard error.Readable form and JSON
The default is a form for people. With--json, the result is printed as one JSON. expl project use, expl skill and expl completion are exceptions: they always print text.
On a failure, --json prints an error like the one below on standard output. The message differs by error, and details and suggested_actions are filled in when there is something to add. Warnings still go to standard error, one per line, even with --json.
Language
The text expl writes itself follows the language of Desktop. Switch it with expl lang ja or expl lang en. This changes the display language of Desktop itself as well. Run expl status first to check that Desktop is connected. Without a language, it shows the current language (for exampleexpl lang --project <id>). When it cannot decide the target project (none of --project, EXPL_PROJECT, a default project or an open project is available), it exits with code 2.
--json, its error_code, the exit codes and the flag names are the same. Only the message text in JSON changes.