You can view, modify, delete, and adjust compatibility levels of a Schema. The commands for these actions are shown in the table below.
default
get
remove-schema
remove-version
set
subjects
write
View the current schemas registered:
lenses-cli schema-registry subjects
Schemas can be filtered by name:
lenses-cli schema-registry get --name [TOPIC_NAME]
Schema compatibility levels can be viewed and filtered by name:
lenses-cli schema-registry get --name [TOPIC_NAME] -q compatibility
Delete all versions of a schema by name:
lenses-cli schema-registry remove-schema --name [SCHEMA_NAME]
Change the compatibility level of a schema:
lenses-cli schema-registry set --compatibility FULL --name [SCHEMA_NAME]
Register a new schema for a name/subject by the command line or file:
lenses-cli schema-registry write --name [GROUP_NAME] --format AVRO --schema \ '{"type": "record","name": "test","fields": [{"name": "field","type": "string"}]}'
On this page