A CLI tool for interacting with Unthread services.
You can install the Unthread CLI from the GitHub Releases page. Visit the GitHub Releases page and download the appropriate binary for your operating system and architecture.
curl -L https://github.com/unthread-io/unthread-cli/releases/latest/download/unthread-v1.0.0.darwin.amd64 -o unthread
chmod +x unthread
sudo mv unthread /usr/local/bin/
curl -L https://github.com/unthread-io/unthread-cli/releases/latest/download/unthread-v1.0.0.darwin.arm64 -o unthread
chmod +x unthread
sudo mv unthread /usr/local/bin/
curl -L https://github.com/unthread-io/unthread-cli/releases/latest/download/unthread-v1.0.0.linux.amd64 -o unthread
chmod +x unthread
sudo mv unthread /usr/local/bin/
curl -L https://github.com/unthread-io/unthread-cli/releases/latest/download/unthread-v1.0.0.linux.arm64 -o unthread
chmod +x unthread
sudo mv unthread /usr/local/bin/
Download the unthread-v1.0.0.exe
file from the releases page and add it to
your system PATH.
The basic usage of the CLI is:
unthread [command] [options]
To use the Unthread CLI, you need to authenticate with your API key. Set the
UNTHREAD_API_KEY
environment variable with your API key:
export UNTHREAD_API_KEY=your_api_key_here
Alternatively, you can pass the API key as an environment variable when running a command:
UNTHREAD_API_KEY=your_api_key_here unthread [command] [options]
version
: Display the version of the Unthread CLIautomations
: Automation commandsfunctions
: Automation functions commandsdeploy <entrypoint>
: Deploy a new version of the automation functions - This will overwrite any existing draft you have.
-b, --base-url <baseUrl>
: Unthread API base URL (defaults tohttps://api.unthread.io/api
)
This project uses Deno for development and building.
To run the CLI in development mode:
deno task dev
To build the CLI for different platforms:
deno task build:all
This will compile the CLI for Linux (amd64 and arm64), macOS (amd64 and arm64), and Windows (amd64).
src/
: Contains the main source filessample/
: Includes sample automation function codebuild.sh
: Shell script for building the CLI for different platformsdeno.json
: Configuration file for Deno and project dependencies
This project is licensed under the MIT License. See the LICENSE file for details.