monoceros add-language
Adds a language toolchain to a workbench’s config. The toolchain is installed
into the container on the next
monoceros apply.
monoceros add-language <name> <lang>[:version] [--yes]<lang> is a catalog language (node, python, java, go, rust,
dotnet, …). Append :version to pin one; omit it for the catalog default.
Examples
Section titled “Examples”monoceros add-language acme go # catalog defaultmonoceros add-language acme java:21 # pin a versionmonoceros add-language acme python:3.12Languages with extra options Monoceros surfaces (e.g. Java’s Maven/Gradle) are written as an editable object you can tweak in the yml:
languages: - java: version: '21' installMaven: true installGradle: true - go:latestBehavior
Section titled “Behavior”- Idempotent by language name.
add-language acme javais a no-op when ajavaentry is already present, whatever its version. - No confirmation prompt. The edit is written straight to the yml as soon as you run the command.
- Edits the yml only. Run
monoceros applyto install the toolchain.
See also
Section titled “See also”- Languages - the catalog and which options are surfaced.
monoceros remove-language- the inverse.