Manifest
The package.json
manifest file is a superset of npm's package.json
file. This way, you only need one file to configure your extension. This document covers only the Raycast specific fields. Refer to npm's documentation for everything else.
Here is a typical manifest file:
Extension properties
All Raycast related properties for an extension.
Property | Description |
---|---|
name* | A unique name for the extension. This is used in the Store link to your extension, so keep it short and URL compatible. |
title* | The title of the extension that is shown to the user in the Store as well as the preferences. Use this title to describe your extension well that users can find it in the Store. |
description* | The full description of the extension shown in the Store. |
icon* | A reference to an icon file in the assets folder. Use png format with a size of 512 x 512 pixels. To support light and dark theme, add two icons, one with |
author * | Your Raycast Store handle (username) |
categories* | An array of categories that your extension belongs in. |
commands* | An array of commands exposed by the extension, see Command properties. |
owner | Used for extensions published under an organisation. When defined, the extension will be private (except when specifying |
access | Either |
contributors | An array of Raycast store handles (usernames) of people who have meaningfully contributed and are maintaining to this extension. |
pastContributors | An array of Raycast store handles (usernames) of people who have meaningfully contributed to the extension's commands but do not maintain it anymore. |
keywords | An array of keywords for which the extension can be searched for in the Store. |
preferences | Extensions can contribute preferences that are shown in Raycast Preferences > Extensions. You can use preferences for configuration values and passwords or personal access tokens, see Preference properties. |
external | An Array of package or file names that should be excluded from the build. The package will not be bundled, but the import is preserved and will be evaluated at runtime. |
Command properties
All properties for a command.
Property | Description |
---|---|
name* | A unique id for the command. The name directly maps to the entry point file for the command. So a command named "index" would map to |
title* | The display name of the command, shown to the user in the Store, Preferences, and in Raycast's root search. |
subtitle | The optional subtitle of the command in the root search. Usually, this is the service or domain that your command is associated with. You can dynamically update this property using |
description* | It helps users understand what the command does. It will be displayed in the Store and in Preferences. |
icon | An optional reference to an icon file in the assets folder. Use png format with a size of at least 512 x 512 pixels. To support light and dark theme, add two icons, one with If no icon is specified, the extension icon will be used. |
mode* | A value of |
interval | The value specifies that a |
keywords | An optional array of keywords for which the command can be searched in Raycast. |
arguments | An optional array of arguments that are requested from user when command is called, see Argument properties. |
preferences | Commands can optionally contribute preferences that are shown in Raycast Preferences > Extensions when selecting the command. You can use preferences for configuration values and passwords or personal access tokens, see Preference properties. Commands automatically "inherit" extension preferences and can also override entries with the same |
disabledByDefault | Specify whether the command should be enabled by default or not. By default, all commands are enabled but there are some cases where you might want to include additional commands and let the user enable them if they need it. Note that this flag is only used when installing a new extension or when there is a new command. |
Preference properties
All properties for extension or command-specific preferences. Use the Preferences API to access their values.
Property | Description |
---|---|
name* | A unique id for the preference. |
title* | The display name of the preference shown in Raycast preferences. For If you want to group multiple checkboxes into a single section, set the |
description* | It helps users understand what the preference does. It will be displayed as a tooltip when hovering over it. |
type* | The preference type. We currently support |
required* | Indicates whether the value is required and must be entered by the user before the extension is usable. |
placeholder | Text displayed in the preference's field when no value has been input. |
default | The optional default value for the field. For textfields, this is a string value; for checkboxes a boolean; for dropdowns the value of an object in the data array; for appPickers an application name, bundle ID or path. |
Depending on the type
of the Preference, some additional properties can be required:
Additional properties for checkbox
Preference
checkbox
PreferenceProperty | Description |
---|---|
label* | The label of the checkbox. Shown next to the checkbox. |
Additional properties for dropdown
Preference
dropdown
PreferenceProperty | Description |
---|---|
data* | An array of objects with |
Argument properties
All properties for command arguments. Use the Arguments API to access their values.
Property | Description |
---|---|
name* | A unique id for the argument. This value will be used to as the key in the object passed as top-level prop. |
type* | The argument type. We currently support |
placeholder* | Placeholder for the argument's input field. |
required | Indicates whether the value is required and must be entered by the user before the command is opened. Default value for this is |
Depending on the type
of the Argument, some additional properties can be required:
Additional properties for dropdown
Argument
dropdown
ArgumentProperty | Description |
---|---|
data* | An array of objects with |
Last updated