Homey CLI
This page contains an overview of all Homey CLI commands.
The Homey command-line interface (CLI) is the tool you need for Homey App development. It enables you to create and run apps on Homey for development and debugging purposes. Additionally, it contains various utilities that make Homey App development faster and easier. Read the getting started guide to learn how to install the Homey CLI.

App Commands

The Homey CLI has commands that help when developing a Homey app. These commands all start with homey app. By default all commands expect a Homey app to be in the current working directory, however it is possible to provide a --path option to execute the command on a Homey app that is not in the current working directory.

Create a new Homey app

1
homey app create
Copied!
With this command you can create a new empty Homey app. This is a great base to start developing a new Homey app. Read the getting started guide to learn more.

Adding a new Driver

1
homey app driver create
Copied!
This command will add a new driver to your Homey app.

Adding a new Flow

1
homey app flow create
Copied!
This adds a new Flow card to your app. If you want to add a new Flow card with a device filter you can use the following command.
1
homey app driver flow create
Copied!

Change the capabilities of a Driver

1
homey app driver capabilities
Copied!
If you want to update the capabilities of your driver you can use this command. This is helpful because it shows a list of all available capabilities and allows you to toggle which one your driver has.

Install TypeScript utilities

1
homey app add-types
Copied!
If you want to use TypeScript in your app this command installs all the packages that are necessary. Read the TypeScript guide to learn more.

Migrate to Homey Compose

1
homey app compose
Copied!
If you have an older Homey app that doesn't use Homey Compose this command will split up your App Manifest into the various Homey Compose files.

Validate a Homey app

1
homey app validate
Copied!
This command checks whether your Homey app has a valid App Manifest. This is automatically checked when you use homey app run homey app install and homey app publish. This command has supports a --level=publish option which will also check whether your app includes valid assets.

Run a Homey app in development mode

1
homey app run
Copied!
You can use this command to run and debug your Homey App. You can see the console output of your app live while the command is running. Quitting the command will uninstall the app from Homey .

Install a Homey app

1
homey app install
Copied!
Using this command you can install apps on your Homey without having to keep a command running. This can be useful for longer term testing. Note that unlike homey app run you cannot see the console output from your app when using this command.

Publish a Homey app to the Homey App Store

1
homey app publish
Copied!
When you want to share your Homey app with other people you can use this command to publish it to the Homey App store. Read more about publishing your app in the publishing guide.

Update a Homey app's version

1
homey app version
Copied!
This command updates the version of your Homey app. Homey apps use semver and with this command you can choose to bump the version by a "patch", "minor" or "major" version. homey app publish will also ask whether you want to update your apps version.

Open the App Store Page of your Homey app

1
homey app view
Copied!
If you want to quickly open the Homey App Store page of your app you can use this command.

Additional Commands

Login with an Athom account

1
homey login
Copied!
In order to use the Homey CLI to run or publish your Homey app you need to login to your Athom account. This command will automatically open the Homey OAuth2 dialog in your default browser.

Logout the current user

1
homey logout
Copied!
The Homey CLI remembers stays logged into your Athom account until you logout. It is therefore recommended to logout if you logged in on a computer that isn't yours or that is used by people you do not know.

Open the Homey Apps SDK documentation

1
homey docs
Copied!
A useful shortcut to quickly open the Homey Apps SDK documentation.

Select a Homey

1
homey select
Copied!
If you have multiple Homeys you can use this command to select which Homey you want to test your app with. This command only affects the behaviour of homey app run and homey app install.
Last modified 6mo ago