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.
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 @dark
as suffix, e.g. icon.png
and icon@dark.png
.
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
).
access
Either "public"
or "private"
. Public extensions are downloadable by anybody, while private extensions can only be downloaded by a member of a given organization.
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.
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 src/index.ts
(or any other supported TypeScript or JavaScript file extension such as .tsx
, .js
, .jsx
).
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 updateCommandMetadata
.
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 @dark
as suffix, e.g. icon.png
and icon@dark.png
.
If no icon is specified, the extension icon will be used.
mode*
A value of view
indicates that the command will show a main view when performed. no-view
means that the command does not push a view to the main navigation stack in Raycast. The latter is handy for directly opening a URL or other API functionalities that don't require a user interface. menu-bar
indicates that this command will return a Menu Bar Extra
interval
The value specifies that a no-view
or menu-bar
command should be launched in the background every X seconds (s), minutes (m), hours (h) or days (d). Examples: 90s, 1m, 12h, 1d. The minimum value is 1 minute (1m).
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 name
.
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.
name*
A unique id for the preference.
title*
The display name of the preference shown in Raycast preferences.
For "checkbox"
, "textfield"
and "password"
, it is shown as a section title above the respective input element.
If you want to group multiple checkboxes into a single section, set the title
of the first checkbox and leave the title
of the other checkboxes empty.
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 "textfield"
and "password"
(for secure entry), "checkbox"
, "dropdown"
, "appPicker"
, "file"
, and "directory"
.
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
Preferencelabel*
The label of the checkbox. Shown next to the checkbox.
Additional properties for dropdown
Preference
dropdown
Preferencedata*
An array of objects with title
and value
properties, e.g.: [{"title": "Item 1", "value": "1"}]
Argument properties
All properties for command arguments. Use the Arguments API to access their values.
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 "text"
, "password"
(for secure entry), and "dropdown"
. When the type is password
, entered text will be replaced with asterisks. Most common use case – passing passwords or secrets to commands.
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 false
.
Depending on the type
of the Argument, some additional properties can be required:
Additional properties for dropdown
Argument
dropdown
Argumentdata*
An array of objects with title
and value
properties, e.g.: [{"title": "Item 1", "value": "1"}]
Last updated