Starting with Julia 1.6, the artifacts support has moved fromPkg.jl to Julia itself. Until proper documentation can be added here, you can learn more about artifacts in thePkg.jl manual athttps://julialang.github.io/Pkg.jl/v1/artifacts/.
Artifacts.artifact_meta —Functionartifact_meta(name::String, artifacts_toml::String; platform::AbstractPlatform = HostPlatform(), pkg_uuid::Union{Base.UUID,Nothing}=nothing)Get metadata about a given artifact (identified by name) stored within the given(Julia)Artifacts.toml file. If the artifact is platform-specific, useplatform to choose the most appropriate mapping. If none is found, returnnothing.
Artifacts.artifact_hash —FunctionArtifacts.find_artifacts_toml —FunctionArtifacts.@artifact_str —Macromacro artifact_str(name)Return the on-disk path to an artifact. Automatically looks the artifact up by name in the project's(Julia)Artifacts.toml file. Throws an error on if the requested artifact is not present. If run in the REPL, searches for the toml file starting in the current directory, seefind_artifacts_toml() for more.
If the artifact is marked "lazy" and the package hasusing LazyArtifacts defined, the artifact will be downloaded on-demand withPkg the first time this macro tries to compute the path. The files will then be left installed locally for later.
Ifname contains a forward or backward slash, all elements after the first slash will be taken to be path names indexing into the artifact, allowing for an easy one-liner to access a single file/directory within an artifact. Example:
ffmpeg_path = @artifact"FFMPEG/bin/ffmpeg"Artifacts.artifact_exists —Functionartifact_exists(hash::SHA1; honor_overrides::Bool=true)Return whether or not the given artifact (identified by its sha1 git tree hash) exists on-disk. Note that it is possible that the given artifact exists in multiple locations (e.g. within multiple depots).
Artifacts.artifact_path —FunctionArtifacts.select_downloadable_artifacts —Functionselect_downloadable_artifacts(artifacts_toml::String; platform = HostPlatform, include_lazy = false, pkg_uuid = nothing)Return a dictionary where every entry is an artifact from the givenArtifacts.toml that should be downloaded for the requested platform. Lazy artifacts are included ifinclude_lazy is set.
Settings
This document was generated withDocumenter.jl version 1.16.0 onThursday 20 November 2025. Using Julia version 1.12.2.