Schema commands - rossumai/elisctl GitHub Wiki

Get

Download schema content from a queue specified by QUEUE-ID. The output is stdout -- can be redirected to a file.

elisctl schema get [QUEUE-ID]
[{"category":  "section", "id":  "all", "children":  []}]

? Without QUEUE-ID but having only one queue is OK. Otherwise, it (or --schema-id) needs to be specified.

  • --schema-id: useful for current usecases (no need to advertise)

Apply

Upload the schema to ELIS.

elisctl schema apply [QUEUE-ID] SCHEMA-CONTENT-FILE

? Without QUEUE-ID but having only one queue is OK. Otherwise, it (or --schema-id) needs to be specified.

Transform

Customize schema via various subcommands.

elisctl schema transform SCHEMA-CONTENT-FILE

Add

Add a datapoint

Change

Change a datapoint

Delete

Delete datapoint (currently named as remove)

Move

Move datapoint between parents

Substitute options

Change only options of a specified enum datapoint (can be also achieved by change subcommand).