plinto import
⚙Made from plinto's own help, so it says what the command does.
plinto help import prints the same in your terminal.What it does
Import a Maven artifact, a Go module, a crate, an npm package, a PyPI project, a Hex package, a toolchain or an image, and everything it needs, as packages, through the build service.
plinto import maven <group>:<artifact>:<version> | go <module path>@<version> | crate <name>@<version> | npm <package>@<version> | pypi <project>==<version> | hex <package>==<version> | jdk|go-toolchain|rust-toolchain|oracle-graalvm|node-toolchain|python-toolchain|uv-toolchain|glibc|gcc|erlang-toolchain|elixir-toolchain|rebar3-toolchain|hex-client|caddy|traefik <version> | image <image>:<tag>==<version> [options]
Imports the artifact, module or crate and everything it needs as packages: each gets a hosted repository with just its plinto.conf, and a build of the version group releases them (prebuilt-maven, prebuilt-go or prebuilt-rust downloads each, once) and pins them.
- Maven: what Maven resolves (compile and runtime), each conflict settled by the highest version.
- Go: what Go selects with the group's Go toolchain, never lower than the modules the group has.
- Crate: what Cargo locks with the group's Rust toolchain, for every platform, with the optional crates --features turns on. A group holds one version of a crate: a tree that needs two stops, saying which.
- npm: what npm locks with the group's Node (npm install --package-lock-only, which runs no script), the packages of other platforms than plinto's five left out, the newest version the group has kept when every range asking for it takes it, else npm's beside it. Another major version of a package the tree needs (semver 6 next to 7) is a package of its own (Semver6). Install scripts never run: the plan says which packages have one.
- PyPI: what uv locks with the group's Uv and Python, for plinto's five platforms and the Python lines --python names (default: those the group points Python at), wheels only: a project with only an sdist stops the import, as building one runs its code. A group holds one version of a PyPI project: the group's versions are kept where the tree allows them, else raised, and a tree that needs a lower one stops. pypi fastapi[standard]==0.143.0 also brings what the standard extra adds, for the project to declare. A project with native wheels is released with those of each line it has them for.
- Hex: what Mix locks (mix deps.get) with the group's Erlang, Elixir and HexClient, the Elixir and Erlang packages' own. A group holds one version of a Hex package, kept where the tree allows it, else raised; a tree that needs a lower one stops. An optional dependency is left to the project that uses it. The security advisories and retirements Hex reports are in the plan.
- Toolchains: Amazon Corretto (jdk) as Java, Go as Go, Rust as Rust, Oracle GraalVM (oracle-graalvm) as OracleGraalVM, Node.js (node-toolchain) as Node, CPython from python-build-standalone (python-toolchain) as Python, its newest build of the version, and uv (uv-toolchain) as Uv, which plans PyPI imports, each with an archive for every platform in --platforms; Erlang/OTP (erlang-toolchain) as Erlang: the Erlang Ecosystem Foundation's macOS builds, Hex's Linux builds (made on Ubuntu 22.04: glibc 2.34 or newer and the host's OpenSSL 3) and erlang/otp's Windows zip; Elixir (elixir-toolchain) as Elixir, one build of it for each Erlang/OTP major in --otp (default: those the group points Erlang at), depending on the group's Rebar3 and HexClient, which Mix builds with: rebar3 (rebar3-toolchain) and Hex (hex-client), each one file for every platform; Caddy (caddy) as Caddy, which a project's release carries with its Caddyfile, a load balancer to deploy, checked against the SHA-512 its release lists, and Traefik (traefik) as Traefik, which a release carries with its traefik.yml the same way; one version per line (Java 25, Go 1.27) in a group, next to the other lines. Oracle builds no GraalVM for mac-x64. The C toolchain Rust links with: gcc as Gcc, xPack's GCC with its own as, ld and ar (no Mac build), and glibc as Glibc, Debian's packages of the day it is imported; Gcc depends on the group's Glibc, and a Rust toolchain on its Gcc. A version released already, asked for a platform it lacks, is released again with the platforms it has and those asked, as its next build (OracleGraalVM 25.0.4-2), which a pointer can then name.
- Images: a base the Docker packager makes images on, from its registry, at the version given after == (image docker.io/library/debian:trixie-20261013-slim==13.20261013 --name docker.io/library/debian=DebianSlim --point 13), one release file for each of --platforms (default: linux-x64, linux-aarch64), each layer checked against its digest. A name without a registry is Docker Hub's (debian:trixie-slim); a digest (@sha256:…) names the image exactly, and a tag is read when it imports. A package is named after its artifact, module or crate (kotlin-stdlib: KotlinStdLib, golang.org/x/text: XText, serde_json: SerdeJson), or keeps the name it was imported under before; --name gives it one of your own. With --dry-run it shows what it would bring and changes nothing. It imports as your access key's user (plinto login); a build service reached without the login takes PLINTO_BUILD_TOKEN instead. A version group's pointer of the package (Java 25) keeps pointing where it did: --point 25 points it at the version imported. A group holds one version of a Go module or a crate, so importing another one of a package a pointer points at needs --point; of a Maven artifact, an npm package or a toolchain, the new version joins the others (a project reaching two picks one in its dependency-resolution). A package uploaded rather than imported (by a bootstrap) has no repository: --adopt gives it one at the version released, which a person can then change by committing, such as to build it with another importer.
Options
| Option | What it does |
|---|---|
--name <id>=<name> | give the package of that artifact (<group>:<artifact>), module (<path>) or image (<registry>/<path>) this name instead of the one derived from it; repeatable |
--version-group <group> | the version group to import into (default: main) |
--features <a,b> | the crate's features to turn on, which decide the optional crates it brings |
--platforms <a,b> | the platforms a toolchain or an image is released for (default: those of mac-aarch64, mac-x64, linux-aarch64, linux-x64, windows-x64 it is built for; an image's, linux-x64, linux-aarch64); a released version asked for one more is released again, as <version>-<n> |
--python <3.14,3.15> | the Python lines a PyPI import resolves for and takes native wheels of (default: the lines the version group points Python at) |
--otp <28,29> | the Erlang/OTP majors an Elixir toolchain is released for, one build of Elixir for each (default: the lines the version group points Erlang at) |
--point <line> | point the version group's <line> of the package (25, 4.x) at the version imported, where it pointed elsewhere; repeatable |
--adopt | give each package it brings that was released without a source (uploaded) its import repository, at the version released: nothing is downloaded |
--dry-run | show what the import would bring, and change nothing |
-o, --organization <name> | the organization whose version group and packages these are (default: yours, when you are in one) |
-h, --help | show this help |