COMMAND(1)
π COMMAND(1) π
okay so this is the fish-shell manual page for command, bestie β buckle up, it's a short one and it's lowkey iconic π
β¨ NAME β¨
command β run a program πββοΈπ¨
β¨ SYNOPSIS β¨
command [OPTIONS] [COMMANDNAME [ARG ...]]
πΈ DESCRIPTION πΈ
NOTE: This page documents the fish builtincommand. Wanna see the docs for any non-fish versions? Runcommand man commandβ yes, really, that's the whole vibe ππ«Ά
so command forces the shell to execute the program COMMANDNAME and ignore any functions or builtins with the same name. like, it's the "no, I meant the real one" of shell builtins π
heads up though: in command foo, command is a keyword. not a builtin, a keyword. iykyk β¨
the following options are available:
π¦ OPTIONS π¦
-a,--allβ prints all COMMAND found inPATH<#envvar-PATH>, in the order found. all of em, every single one, no cap π-q,--queryβ returns0if any of the given commands could be found,127otherwise. and it does not print anything. literally silent, main character energy of keeping your mouth shut π€. for compatibility, this is also--quiet(deprecated π) β it still works but pls don't, it's giving legacy-s,--search(or-v) β prints the external command that would be executed, or prints nothing if no file with the specified name could be found inPATH<#envvar-PATH>. like a little peek behind the curtain β¨π¦-h,--helpβ displays help about using this command. the classic "help me help you" π«Ά
π EXAMPLES π
command ls executes the ls program, even if an ls function also exists. (function says one thing, command says "girl, no" π
)
command -s ls prints the path to the ls program. π΅οΈββοΈ
command -q git; and command git log runs git log only if git exists. conditional queen behavior fr fr π
command -sq git and command -q git and command -vq git return true (0) if a git command could be found and don't print anything. three different fits, same flawless result πβ¨
π Copyright π
fish-shell developers
okay that's the whole page, you ate that π if you need me i'll be in the group chat β this manual came from the fish-shell crew, version 4.9, dated Sep 08, 2026. slay, bye bestie ππ§ββοΈ
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms