This repository contains the source code for AutomaCLI. To set up AutomaCLI by building it from source and configuring it locally, you can use the setup.sh script.
Before running the setup script, ensure you have the following installed:
- Git: For cloning the repository.
- Swift Toolchain: For building the AutomaCLI binary. You can download it from swift.org.
This script is designed to work on both macOS and Linux.
The setup.sh script will perform the following actions:
- Clone the AutomaCLI repository to a local directory (default:
~/.automacli_repo). - Build the AutomaCLI binary from the cloned source code.
- Create a configuration directory at
~/.config/automacli/. - Create a
config.jsonfile within the configuration directory, storing therepoPathto the cloned repository.
If a config.json file already exists, the script will exit with an error unless the AUTOMA_FORCE_OVERWRITE environment variable is set to true.
To run the setup script, execute the following command in your terminal:
curl -sSL "https://x-access-token:$(gh auth token)@raw.githubusercontent.com/GetAutomaApp/AutomaCLI/main/setup.sh" | bashTo force overwrite an existing configuration:
export AUTOMA_FORCE_OVERWRITE=true && curl -sSL "https://x-access-token:$(gh auth token)@raw.githubusercontent.com/GetAutomaApp/AutomaCLI/main/setup.sh" | bashAfter successful execution, the AutomaCLI binary will be symlinked to /usr/local/bin/automa, allowing you to run it using the automa command.