Command line interface to install Home Assistant Community Store packages
Project description
unhacs
A command line alternative to the "Home Assistant Community Store", aka HACS
Installation
pipx install unhacs
Usage
Unhacs provides several commands to manage your Home Assistant packages. It stores installed or requsted packages in a lock file called unhacs.yaml. This makes it possible to version control your packages and easily share them with others.
Add a package
To add a package, use the add command followed by the URL of the package. Optionally, you can specify the package name and version. If no version is specified, the latest version will be installed:
unhacs add <package_url>
unhacs add <package_url> --version <version>
If the package already exists, you can update it by adding the --update flag:
unhacs add <package_url> --update
If the package is a Lovelace plugins or theme, install it using the appropriate flags:
unhacs add --plugin <package_url>
unhacs add --theme <package_url>
If you already have a list of packages in a file, you can add them all at once using the --file flag:
unhacs add --file ./unhacs.yaml
Add a component from a forked Home Assistant Core repository
To add a component from a fork of home-assistant/core, use the --fork-component flag followed by the name ofthe component and then specify the branch with the --fork-branch flag:
unhacs add --fork-component <component_name> --fork-branch <branch_name> <forked_repo_url>
List packages
To list all installed packages, use the list command:
unhacs list
unhacs list --verbose
List tags
To list all tags for a package, use the tags command followed by the name of the package:
unhacs tags <package_url>
unhacs tags <package_url> --limit 20
Remove a package
To remove a package, use the remove command followed by the name of the package:
unhacs remove <package_name>
Upgrade packages
To upgrade all packages, use the upgrade command:
unhacs upgrade
To upgrade specific packages, add their names after the upgrade command:
unhacs upgrade <package_name_1> <package_name_2> ...
Use git tags
By default, identification of releases uses the GitHub API. If you want to use git tags instead, you can add the --git-tags flag to the base command:
unhacs --git-tags add <package_url>
License
Unhacs is licensed under the MIT License. See the LICENSE file for more details.
Original repo
Originally hosted at https://git.iamthefij.com/iamthefij/unhacs.git
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unhacs-0.7.2.tar.gz.
File metadata
- Download URL: unhacs-0.7.2.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.4 Linux/5.15.0-125-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb16fdc56df42d272a532a77d3953be593634b5e01a51d8b0b9c2a90d8b4fdf6
|
|
| MD5 |
7e55095d28e1b7818c05787b2b5b3dff
|
|
| BLAKE2b-256 |
ccd31e5c71ebc21569e5bb45c51e0c95b298d0235c996425808a53de7061da7f
|
File details
Details for the file unhacs-0.7.2-py3-none-any.whl.
File metadata
- Download URL: unhacs-0.7.2-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.4 Linux/5.15.0-125-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02cabb571b2aaf86b9535d14bdff704a658c273d49e7e012ed96bdf389aed3de
|
|
| MD5 |
d465f099ff3c2745f2b0c1a8c5cb0c2e
|
|
| BLAKE2b-256 |
6d8d59177f3a0012d8d717da960c43a44ba8592ace788e80d5a22a30f727425f
|