This guide covers all the command-line operations available in PushBlind. Each command is explained with examples and use cases to help you get started quickly.
All PushBlind commands follow this general pattern:
pushblind <command> [arguments] [options]PushBlind uses git internally to manage packages. You can customize which git commands it uses, though this is optional as sensible defaults are provided.
pushblind set_git_clone "git clone"This sets the command used to clone repositories. The default value is "git clone", but you might want to change it if you need specific git options or use a git wrapper.
Example with custom options:
pushblind set_git_clone "git clone --depth 1"pushblind set_git_pull "git pull"This sets the command used to update existing repositories. The default is "git pull".
Example with custom options:
pushblind set_git_pull "git pull --rebase"The add command registers a new package repository with PushBlind. This downloads the repository and makes its actions available for use.
pushblind add <repository_url> <entry_file> --name <package_name><repository_url>: The git repository URL containing the package<entry_file>: The main Lua file that defines the package's actions--name <package_name>: A local name for the package (used in other commands)
pushblind add https://github.com/OUIsolutions/public_oui_packages.git all.lua --name public_ouiThis command:
- Clones the repository from GitHub
- Registers it with the local name "public_oui"
- Uses "all.lua" as the main entry point
- Makes all actions defined in that file available
When package repositories are updated, you can pull the latest changes using the update command.
pushblind update <package_name>pushblind update public_ouiThis pulls the latest changes from the "public_oui" package repository.
The install command sets up a package for use. This may involve downloading dependencies or performing setup operations defined by the package.
pushblind install <package_name>pushblind install public_ouiTo remove a package from your system, use the remove command. This will delete the package files and unregister it from PushBlind.
pushblind remove <package_name>pushblind remove public_ouiWarning: This will permanently delete the package. You'll need to add it again if you want to use it later.
Once you have packages installed, you can execute their actions using this syntax:
pushblind <action_name> <package_name><action_name>: The name of the action you want to execute<package_name>: The name of the package containing the action
pushblind build_project public_ouiThis executes the "build_project" action from the "public_oui" package.
Here's a typical workflow when working with PushBlind:
-
Add a package:
pushblind add https://github.com/example/my-package.git main.lua --name my_package
-
Install the package:
pushblind install my_package
-
Use package actions:
pushblind some_action my_package
-
Update when needed:
pushblind update my_package
-
Remove if no longer needed:
pushblind remove my_package
- Package Names: Choose descriptive names for your packages to avoid confusion
- Regular Updates: Run
updateperiodically to get the latest package improvements - Action Discovery: Check package documentation to learn what actions are available
- Git Configuration: Only modify git commands if you have specific requirements
Most commands will provide error messages if used incorrectly. Make sure your package names match exactly what you used when adding them, as PushBlind is case-sensitive.