rpk connect blobl

Execute Bloblang mappings from the command line. Provides a convenient tool for mapping JSON documents.

Usage

rpk connect blobl [flags]

Examples

This section provides examples of how to use rpk connect blobl.

Map JSON documents from stdin.

cat documents.jsonl | rpk connect blobl 'foo.bar.map_each(this.uppercase())'

Use a mapping file.

echo '{"foo":"bar"}' | rpk connect blobl -f ./mapping.blobl

Process input from a file.

rpk connect blobl -i input.jsonl -f ./mapping.blobl

Subcommands

Command Description

rpk connect blobl server

Run a web server that provides an interactive application for writing and testing Bloblang mappings.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.

Suggested reading