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 builtin command. Wanna see the docs for any non-fish versions? Run command 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 in PATH <#envvar-PATH>, in the order found. all of em, every single one, no cap πŸ‘‘
  • -q, --query β€” returns 0 if any of the given commands could be found, 127 otherwise. 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 in PATH <#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 πŸ’–βœ¨


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