Skip to content

m ci npm_tag

Display an npm tag assigned to given version.

examples::

~$ m ci npm_tag 0.0.0-develop.b123
develop

~$ m ci npm_tag 0.0.0-pr1234.b123
pr1234

~$ m ci npm_tag 2.0.1-rc1234.b123
next

~$ m ci npm_tag 2.0.1
latest
Source code in m/cli/commands/ci/npm_tag.py
class Arguments(BaseModel):
    """Display an npm tag assigned to given version.

    examples::

        ~$ m ci npm_tag 0.0.0-develop.b123
        develop

        ~$ m ci npm_tag 0.0.0-pr1234.b123
        pr1234

        ~$ m ci npm_tag 2.0.1-rc1234.b123
        next

        ~$ m ci npm_tag 2.0.1
        latest
    """

    npm_tag: str = Arg(
        help='npm package version',
        positional=True,
        required=True,
    )

Positional arguments

npm_tag

npm package version