Skip to content

m npm add_tags

Add tags to a package version.

$ m npm add_tags --branch "$M_BRANCH" <package-name> <m_tag>

These tags are the same tags generated from docker.

Source code in m/cli/commands/npm/add_tags.py
class Arguments(BaseModel):
    """Add tags to a package version.

        $ m npm add_tags --branch "$M_BRANCH" <package-name> <m_tag>

    These tags are the same tags generated from docker.
    """

    package_name: str = Arg(
        help='name of the npm package',
        positional=True,
        required=True,
    )

    m_tag: str = Arg(
        help='the m_tag of the published package',
        positional=True,
        required=True,
    )

    branch: str = Arg(
        help='the branch where the build is taking place',
        required=True,
    )

Required arguments

--branch

the branch where the build is taking place

Positional arguments

package_name

name of the npm package

m_tag

the m_tag of the published package