Getting started with the Moderne CLI
The Moderne CLI is a command line tool that simplifies the process of building and publishing Lossless Semantic Tree (LST) artifacts to your artifact repository. Instead of having to manually set up each repository individually, you can use the CLI to configure thousands of repositories at once.
To install the Moderne CLI please:
- 1.
- 2.Click on the
?
in the top right corner and then selectModerne CLI
from theTools
menu: - 3.You can then either press the
Download Latest
button or you can install it directly through the command line by copying thecurl
command at the bottom of the modal:
The
build
command allows you to manually create the LST artifacts with Group Artifact Version coordinates for a specific project. Once created, you can manually upload the artifacts to your artifact library so that Moderne can ingest them.The publish command allows you to manually build and publish LST artifacts for a specific project. Once published to your artifact repository, Moderne will be able to ingest them and they will, in turn, be usable inside of the SaaS.
This command will begin by executing the build command and, if that's successful, it will then attempt to upload the artifacts to the artifact repository you specified.
The
connect jenkins
job allows you to create Jenkins Jobs in bulk. For each configured repository, a Jenkins Job will be made that builds and publishes LST artifacts to your artifact repository on a regular basis.The
connect github
command will create GitHub workflows that build and publish LST artifacts to your artifact repository on a regular basis. A workflow can be created for ingesting a single repository (by specifying the path
parameter) or workflows can be created for ingesting a mass number of repositories (by specifying the fromCsv
parameter).Last modified 1d ago