.. _module-build-local:

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

.. program:: module-build-local

Synopsis
--------

::

    sample-rpkg module-build-local [-h] [--file [FILE_PATH]] [--srpm SRPMS] [--stream [STREAM]] [--skip-tests] [--add-local-build N:S:V] [-s N:S] [--offline] [-r PATH]

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

Build a module locally using the mbs-manager command



Options
-------

.. option:: -h --help

   show this help message and exit

.. option:: --file

   The module's modulemd yaml file. If not specified, a yaml file with the same basename as the name of the repository will be used.

.. option:: --srpm

   Include one or more srpms for module build.

.. option:: --stream

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

.. option:: --skip-tests

   Adds a macro for skipping the check section

.. option:: --add-local-build

   Import previously finished local module builds into MBS in the format of name:stream or name:stream:version

.. option:: -s --set-default-stream

   Set the default stream for given module dependency in case there are multiple streams to choose from.

.. option:: --offline

   Builds module offline without any external infrastructure

.. option:: -r --repository

   Full path to .repo file defining the base module repository to use when --offline is used.