Metadata Format
Use the appropriate comment syntax for your language:- Bash/Python/Ruby
- JavaScript/Swift/C#
Required Parameters
These three parameters must be present in every Script Command:schemaVersion
Schema version to prepare for future changes in the API. Currently, only version
1 is available.App Version: 0.29+title
Display name of the Script Command shown in Raycast’s root search.App Version: 0.29+Example: bear-add-note.sh:5
mode
Specifies how the script is executed and how output is presented.Options: See Output Modes for detailed explanations of each mode.
silent, compact, fullOutput, inlineApp Version: 0.29+Optional Parameters
packageName
Display name of the package shown as a subtitle in root search. When not provided, the name is inferred from the script directory name.App Version: 0.29+Example: Groups related scripts together like “System”, “Web Searches”, or “Baremetrics”.
icon
Icon displayed in the root search. Can be:
- An emoji:
🤖 - A file path (relative or absolute):
images/bear-light.png - A remote URL (HTTPS only):
https://example.com/icon.png
iconDark
Icon for dark theme. If not specified, Example: bear-add-note.sh:11-12
icon is used for both themes.App Version: 1.3.0+currentDirectoryPath
Path from which the script is executed. Default is the path of the script.App Version: 0.29+
needsConfirmation
Shows a confirmation alert dialog before running the script. Helpful for destructive operations like “Quit All Apps” or “Empty Trash”.Default:
falseApp Version: 0.30+refreshTime
Refresh interval for Example: inline-cpu-usage-percent.sh:8
inline mode scripts. Specify in seconds (s), minutes (m), hours (h), or days (d).Minimum: 10 secondsExamples: 10s, 1m, 12h, 1dApp Version: 0.31+Required for inline modeIf you have more than 10 inline commands, only the first 10 will refresh automatically. The rest must be manually refreshed by navigating to them and pressing Return.
argument1, argument2, argument3
Custom arguments for user input. Supports text, password, and dropdown fields.Maximum arguments: 3App Version: 1.2.0+See Arguments for complete documentation.
Documentation Parameters
These parameters are used for documentation and community sharing:description
Brief description of what the script command does.
author
Author name for documentation.
authorURL
Author’s social media, website, or contact information.
Complete Example
Here’s a full example combining multiple metadata parameters:Troubleshooting
Script Not Appearing in Raycast?
Check Filename
Ensure the filename doesn’t contain
.template. Remove this from the filename once you’ve configured the script.Verify Required Parameters
Confirm all three required parameters (
schemaVersion, title, mode) are present.Check Comment Syntax
Ensure you’re using the correct comment syntax:
#for Bash, Python, Ruby, PHP//for JavaScript, Swift, C#
Start from Template
If nothing works, start from a template or copy an example from the community repository.

