git-annex-fromkey(1)
β¨ git-annex-fromkey β¨
okay bestie, welcome to the git-annex-fromkey manual page, part of the git-annex fam π this one lives in the General Commands Manual section and it's giving very specific, very plumbing-core energy.
πΈ NAME πΈ
git-annex-fromkey β adds a file using a specific key π
π¦ SYNOPSIS π¦
git annex fromkey [key file ...]
π DESCRIPTION π
so like. this is a plumbing-level command, which is code for "you're down in the pipes, bestie, and you know exactly what you're doing." π«Ά
It lets you manually set up a file in the git repository to link to a specified key. that's the whole vibe. you got a key, you got a file, you're introducing them. matchmaker era. π
And you're not limited to one glow-up at a time β you can hand over multiple pairs of file and key in a single command line. slay.
If you don't specify any key and file pair on the command line at all? no problem. batch input is used, exactly the same as if you'd typed --batch yourself. it just knows. β¨
Now, normally that key is a git-annex formatted key. BUT β and this is the cute little shortcut β to make it easier to use this for adding urls, if the key cannot be parsed as a key, and it is a valid url, then an URL key is constructed from the url. convenient!
β οΈ heads up though: this does NOT register the url as a location of the key. if that's what you want, go use git-annex-registerurl(1) instead. this command is not doing that for you, bestie, no matter how nicely you ask. π
π OPTIONS π
--forceβ lets you make a file link to a key whose content is not in the local repository. and like, the key might not even be known to git-annex at all. chaotic, but permitted. π₯--batchβ batch input mode! lines get read fromstdin, and each line should have a key and filename, separated by a single space. one space. just the one. π«Ά-zβ when you're in batch mode, this makes the input delimited by nulls instead of the usual newlines.
π note note note: for this to actually be used, you have to explicitly enable batch mode with--batch.-zalone is not gonna do it, babes.
--jsonβ turns on JSON output. this is intended to be parsed by programs that use git-annex. each line of output is a JSON object. machine-readable realness. π€β¨
Also, the git-annex-common-options(1) can be used too. those are always invited to the party. π
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name> β the icon, the moment, the legend. π«Ά
and that's the whole page, bestie!! this was git-annex-fromkey(1) from the git-annex source, and yeah the footer is literally just the same page name again, iconic behavior honestly. go forth and link your keys. periodt. π
β¨π
π¦ 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
- debian bookworm: git-annex 10.20230126-3 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 Β· AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 Β· AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 Β· AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu noble: git-annex 10.20240129-1build1 Β· AGPL-3.0-or-later
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms