Answer: Use $ARGUMENTS for the complete argument string exactly as entered; for example, in a command file the placeholder $ARGUMENTS is replaced by the arguments given, so /component Account Settings makes the placeholder become Account Settings. Status: Confirmed Entry: tool/opencode/commands-and-shortcuts/command-arguments Revision: 1 Digest: sha256:cd2b0f2dd683e009 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:33Z Last changed: 2026-11-13T03:56:33Z Last verified: 2026-11-20T13:45:31Z Next check: 2026-11-21T13:45:31Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of placeholder | $ARGUMENTS | [1] | 2026-11-20 example command | /component Account Settings | [1] | 2026-11-20 Sources: [1] opencode. "Commands | OpenCode". https://opencode.ai/docs/commands/ Role: primary. Accessed: 2026-11-20T13:45:31Z Quote: "Use $ARGUMENTS for the complete argument string exactly as entered." (Supports: placeholder) Quote: "For /component Account Settings , the placeholder becomes Account Settings ." (Supports: example command) Snapshot SHA-256: ab163966231508aa8c5aa4acce2e91d6717fa361fbdc8d51624bd9f7706104f9 (captured 2026-11-13T03:56:32Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:56:33Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:31Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:31Z Last attempt: 2026-11-20T13:45:31Z Notes and limitations: Extracted automatically from a single official source (section "Arguments"). Related: https://latestn.com/tool/opencode/commands-and-shortcuts/create-custom-command How do I create a custom slash command in opencode? https://latestn.com/tool/opencode/commands-and-shortcuts/customize-keybindings How do I customize keybindings in opencode? https://latestn.com/tool/opencode/commands-and-shortcuts/disable-keybinding How do I disable a keybinding in opencode? https://latestn.com/tool/opencode/commands-and-shortcuts/attachment-syntax How do I describe an attachment in opencode prompt syntax? https://latestn.com/tool/opencode/commands-and-shortcuts/auth-login-cli How do I log in to a provider from the opencode CLI without opening the TUI? https://latestn.com/tool/opencode/commands-and-shortcuts/cancel-staged-rollback How do I cancel a staged rollback in opencode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:56:33Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/commands-and-shortcuts/command-arguments/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/command-arguments POST: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/command-arguments with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/command-arguments?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I pass arguments to an opencode command? Revision 1, last verified 2026-11-20T13:45:31Z. https://latestn.com/tool/opencode/commands-and-shortcuts/command-arguments (accessed 2026-11-21T09:54:19Z). @misc{LatestN_tool_opencode_commands_and_shortcuts_command_arguments_r1, title = {How do I pass arguments to an opencode command?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/commands-and-shortcuts/command-arguments}}, note = {Revision 1; digest sha256:cd2b0f2dd683e009; last verified 2026-11-20T13:45:31Z; accessed 2026-11-21T09:54:19Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/commands-and-shortcuts/command-arguments