.. _module-build:

module-build
============

.. program:: module-build

Synopsis
--------

::

    sample-rpkg module-build [-h] [--watch] [--buildrequires name:stream] [--requires name:stream] [--optional key=value] [--file [FILE_PATH]] [--srpm SRPMS] [--scratch]
                             [scm_url] [branch]

Description
-----------

Build a module using MBS

Arguments
---------

.. option:: scm_url

   The module's SCM URL. This defaults to the current repo.

.. option:: branch

   The module's SCM branch. This defaults to the current checked-out branch.



Options
-------

.. option:: -h --help

   show this help message and exit

.. option:: --watch -w

   Watch the module build

.. option:: --buildrequires

   Buildrequires to override in the form of "name:stream"

.. option:: --requires

   Requires to override in the form of "name:stream"

.. option:: --optional

   MBS optional arguments in the form of "key=value". For example: 'sample-rpkg module-build --optional "reuse_components_from=<NSVC>"'. More description including list of available arguments here: https://pagure.io/fm-orchestrator/

.. option:: --file

   The modulemd yaml file for module scratch build.

.. option:: --srpm

   Include one or more srpms for module scratch build.

.. option:: --scratch

   Perform a scratch build