This page describes commands to update various metadata associated with datasets in Lenses via the CLI.
To set a dataset description, use:
It is also possible to remove the dataset description by supplying the --remove-description
flag.
To set one or multiple dataset tags, use:
Notice that the --tags
parameter is required and should contain a non-empty, space separated list of tags (a tag max length is 255 characters). To delete all the tags associated to a dataset, you can use the remove-tags
subcommand:
This page describes the commands to manage Kafka topics via the Lenses CLI.
The optional names flag wil display only the names of the topics. If you use the –unwrap flag, each topic name will be displayed on a new line as text:
Update from a file:
Example file:
Update from a file:
Example file:
Update from a file:
Example file:
This page describes how to query data in Lenses via the CLI.
The CLI allows you to browse and subscribe to topic data with SQL. Please refer to the Lenses SQL documentation for more details.
Use these flags to control the data that’s returned:
keys print message keys
keys-only print the keys only, not the value of the message
meta print the message metadata, partition number and offsets
stats print query statistics as the last message
Browse data via the query command, optionally validate and output stats:
Live continuous queries update according to the query and never stop until terminated:
The interactive shell allows you to have an interactive experience and issue Lenses SQL queries from the command line.
To start the interactive shell, issue the following command:
The available options are the following:
keys print message keys
keys-only print the keys only, not the value of the message
meta print the message metadata, partition number and offsets
stats print query statistics as the last message
pretty pretty print the JSON output
live-stream run as a continuous query
!options prints the current options
Options are set using the ! prefix
Queries are executed by ;
Multiline queries are possible but not available in the history inside the shell. After a restart, the multiline queries are concatenated into one line and can be selected.
Query history is stored in .lenses/history in the home directory of the user.
This page describes command to manage data policies in Lenses via the CLI.