git-annex-registerurl(1)
π git-annex-registerurl(1) β General Commands Manual π
okay so bestie, welcome to the git-annex-registerurl page, straight out of the General Commands Manual β¨ this one's a lil niche but it's lowkey iconic once you get it, trust.
πΈ NAME πΈ
git-annex-registerurl β it registers an url for a key, that's the whole vibe π
π¦ SYNOPSIS π¦
git annex registerurl [key url]
β¨ DESCRIPTION β¨
So this is a plumbing-level command, meaning it's the gears-and-sprockets layer, not the cute porcelain stuff you'd hand to your non-Unix friends. What it does: you can use it to register urls where a key can be downloaded from π
β οΈ Heads up bestie: no verification is performed of the url's contents. Like, zero. None. It does not check anything. It just believes you. π
Normally the key is a git-annex formatted key. But β and this is the slay part β to make it easier to use this to add urls, if the key cannot be parsed as a key, and is a valid url, a VURL key is constructed from the url. So it kinda meets you where you're at π«Ά
Registering an url also makes git-annex treat the key as present in the special remote that claims it. (Usually the web special remote.) main character energy for the web remote, honestly π
π OPTIONS π
--remote=name|uuidβ says hey, this url is expected to be claimed by the specified remote. And if some other remote claims the url instead? Registering it will fail. no cap, it will simply not go through π
Little note: --remote=web will prevent any other remote from claiming the url. web remote said "mine" and meant it π
--batchβ batch input mode! Lines are read from stdin, and each line should contain a key and url, separated by a single space. π
For backwards compatability with old git-annex before this option was added, when no key and url pair are specified on the command line, batch input is used, the same as if the --batch option were specified. It is however recommended to use --batch. (Yes, the old behaviour is still lurking. It's giving legacy. But bestie, just say --batch out loud, it's clearer β¨)
-zβ when in batch mode, the input is delimited by nulls instead of the usual newlines. weird lil divider but ok, we respect it π
(Note that for this to be used, you have to explicitly enable batch mode with --batch. Like, -z alone is not gonna manifest batch mode out of thin air, bestie π§)
--jsonβ enable JSON output. This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object. machine-readable slay π€π--json-error-messagesβ messages that would normally be output to standard error are included in the JSON instead. so the errors get to live inside the JSON, cozy π
Also the git-annex-common-options(1) can be used. free real estate, go off π
π₯ SEE ALSO π₯
the whole url-lore cinematic universe, honestly, go read them all πΈ
π AUTHOR π
Joey Hess <id@joeyh.name> β iconic, we stan π
and that's the page, bestie π this is git-annex-registerurl(1) from the git-annex manual β go forth and register those urls, you absolute legend π¦π
π¦ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 Β· AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 Β· AGPL-3.0-only
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms