schemaGen command
The schemaGen command generates a schema for an entire Open Liberty installation in a single output file in the current directory.
This command generates a schema for an entire Open Liberty installation. To generate a schema for a specific server, use the serverSchemaGen command.
Usage examples
Generate a schema for the Open Liberty installation in a file that is called schema.xsd in the current directory.
schemaGen schema.xsdGenerate a schema in the Brazilian Portuguese language for the Open Liberty installation in a file that is called schema.xsd.
schemaGen --locale=pt_BR schema.xsdDisplay help information for the schemaGen command.
schemaGen --helpSyntax
Run the command from the path_to_liberty/wlp/bin directory.
schemaGen [options] outputFile
If you do not specify a relative path for the output file, it is created in the current directory.
Options
The following options are available for the schemaGen command.
| Option | Description | 
|---|---|
--compactOutput  | This option specifies that the schema output does not contain indenting spaces, new line feeds, or XML comments.  | 
--encoding=charset  | This option specifies the name of a character set to use in the generated output file, where charset is the name of the character set.  | 
--locale=language  | This option specifies the language to use in the generated output file, where language is an ISO-639 two-letter lowercase language code, optionally followed by an underscore and the ISO-3166 uppercase two-letter country code.  | 
--outputVersion=2  | This option specifies that only the   | 
--schemaVersion=1.1  | This option specifies that both explicitly named child elements and the   | 
Exit codes
The following exit codes are available for the schemaGen command.
| Code | Explanation | 
|---|---|
0  | This code indicates the successful completion of the requested operation.  | 
20  | This code indicates that the command contains an invalid argument.  | 
21  | This code indicates that a runtime exception occurred.  |