### Get Homey CLI Help Source: https://github.com/athombv/node-homey/blob/develop/README.md Displays help information for the Homey CLI, providing an overview of available commands and options. ```bash $ homey --help ``` -------------------------------- ### Install Homey CLI Source: https://github.com/athombv/node-homey/blob/develop/README.md Installs the Homey command-line interface globally using npm. This command makes the 'homey' executable available on your system. ```bash $ npm i -g homey ``` -------------------------------- ### Homey Ready State and API Interaction Source: https://github.com/athombv/node-homey/blob/develop/assets/templates/app/widgets/public/index.html JavaScript function to be called when the Homey environment is ready. It initializes Homey, logs widget settings, and demonstrates making a GET request to the Homey API root endpoint. ```javascript function onHomeyReady(Homey) { Homey.ready(); // View the settings the user provided if your widget has settings. console.log('Widget settings:', Homey.getSettings()); // Fetch something from your app. Homey.api('GET', '/', {}) .then((result) => { console.log(result); }) .catch(console.error); } ``` -------------------------------- ### Require Homey Log Module Source: https://github.com/athombv/node-homey/blob/develop/README.md Demonstrates how to require the 'homey-log' module in a Node.js application. This module is used for logging within Homey Apps. ```javascript const Log = require('homey-log'); ``` -------------------------------- ### Custom CSS Class for Image Margins Source: https://github.com/athombv/node-homey/blob/develop/assets/templates/app/widgets/public/index.html Defines a custom CSS class '.custom-image-class' to apply specific margin values using Homey's CSS variables. This class is useful for styling images within Homey applications. ```css .custom-image-class { margin: var(--homey-su-3) auto var(--homey-su-5); } ```