Cli functionality to generate segment samples