Docs Self-Managed Reference rpk Commands rpk shadow rpk shadow config generate rpk shadow config generate Page options Copy as Markdown Copied! View as plain text Ask AI about this topic Generate a configuration file for creating a shadow link. By default, this command creates a sample configuration file with placeholder values that you customize for your environment. Use the --print-template flag to generate a configuration template with detailed field documentations. By default, this command prints the configuration to standard output. Use the --output flag to save the configuration to a file. After you generate the configuration file, update the placeholder values with your actual connection details and settings. Then use rpk shadow create to create the shadow link. Usage rpk shadow config generate [flags] Examples Generate a sample configuration and print it to standard output: rpk shadow config generate Generate a configuration template with all the field documentation: rpk shadow config generate --print-template Save the sample configuration to a file: rpk shadow config generate -o shadow-link.yaml Save the template with documentation to a file: rpk shadow config generate --print-template -o shadow-link.yaml Flags Value Type Description -o, --output string File path identifying where to save the generated configuration file. If not specified, prints to standard output. --print-template - Generate a configuration template with field documentation instead of a sample configuration. -h, --help - Help for generate. --config string Redpanda or rpk config file; default search paths are /var/lib/redpanda/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml. -X, --config-opt stringArray Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terser detail. --profile string Profile to use. See rpk profile for more details. -v, --verbose - Enable verbose logging. Back to top × Simple online edits For simple changes, such as fixing a typo, you can edit the content directly on GitHub. Edit on GitHub Or, open an issue to let us know about something that you want us to change. Open an issue Contribution guide For extensive content updates, or if you prefer to work locally, read our contribution guide . Was this helpful? thumb_up thumb_down group Ask in the community mail Share your feedback group_add Make a contribution 🎉 Thanks for your feedback! rpk shadow rpk shadow create