Arguments
Raycast supports arguments for your commands so that users can enter values right from Root Search before opening the command.

Arguments are configured in the manifest per command.
Example
Let's say we want a command with three arguments. Its package.json
will look like this:
The command itself will receive the arguments' values via the arguments
prop:
Types
Arguments
A command receives the values of its arguments via a top-level prop named arguments
. It is an object with the arguments' name
as keys and their values as the property's values.
Depending on the type
of the argument, the type of its value will be different.
Argument type
Value type
text
string
password
string
dropdown
string
Last updated