﻿---
title: assembler content-source match cli command
description: Check whether a repository at a specific branch or tag should be included in the next build. Exits 0 if the repository matches; 1 otherwise. Useful for...
url: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/2927/cli/assembler/content-source/match
products:
  - Elastic Docs Builder
---

# assembler content-source match cli command
```bash
docs-builder assembler content-source match [<repository>] [<branch-or-tag>]
```

Check whether a repository at a specific branch or tag should be included in the next build.

## Arguments

<definitions>
  <definition term="<repository> string">
    Repository slug to match (e.g. elastic/elasticsearch).
  </definition>
  <definition term="<branch-or-tag> string">
    Branch name or version tag to test against.
  </definition>
</definitions>


## Options

<definitions>
  <definition term="-l --log-level enum">
    Minimum log level.
    **Values:** trace, debug, information, warning, error, critical, none
    **Default:** `information`
  </definition>
  <definition term="-c --config-source enum">
    Override the configuration source: local, remote
    **Values:** local, remote, embedded
  </definition>
  <definition term="--[no-]skip-private-repositories">
    Skip cloning private repositories
  </definition>
</definitions>


## Notes

Exits 0 if the repository matches; 1 otherwise. Useful for conditional CI steps.