Blueprints

Read a file from inputs - a parametrized workflow with files input parameters

Source

yaml
id: input-file
namespace: company.team

inputs:
  - id: text_file
    type: FILE

tasks:
  - id: read_file
    type: io.kestra.plugin.scripts.shell.Commands
    taskRunner:
      type: io.kestra.plugin.core.runner.Process
    commands:
      - cat "{{ inputs.text_file }}"

About this blueprint

This example shows how to read a file from flow inputs.

Commands

Process

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra