There's multiple ways to generate a kfp component: from python function from file/text From file/text You'll use component.load_component_from_<file|text> when you need to interface with a command line tool.