# Can I \`include\` one pipeline yaml in another?

**URL:** <https://forum.buildkite.community/t/can-i-include-one-pipeline-yaml-in-another/2205>\
**Category:** Features Requests\
**Created:** [September 1, 2022, 3:49pm UTC](https://forum.buildkite.community/t/can-i-include-one-pipeline-yaml-in-another/2205 "2022-09-01T15:49:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![iammcgaber](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@iammcgaber](https://forum.buildkite.community/u/iammcgaber)\
**Post date:** [September 1, 2022, 4:42pm UTC](https://forum.buildkite.community/t/can-i-include-one-pipeline-yaml-in-another/2205/3 "2022-09-01T16:42:07Z")

</div>

See [this](https://github.com/buildkite/dynamic-pipeline-example/tree/master/.buildkite) example. I tend to prefer `cat` over `echo` as it reads cleaner.

In your `pipeline.yml` file you need a Pipeline upload step:

```nohighlight
steps:
  - label: "Yada"
    command: ".buildkite/pipeline.sh | buildkite-agent pipeline upload"

```

Then in your `pipeline.sh` file have something like this:

```bash
#!/bin/bash
set -eu

cat << EOF
steps:
  - label: "Tada"
    command: "npm start"
EOF

```

---

_[View the full topic](https://forum.buildkite.community/t/can-i-include-one-pipeline-yaml-in-another/2205)._
