5e459dfc789427a00a40b3ecfb8f690bb1ce9af8
Onx
An agent-friendly CLI (built in Rust btw) for the Onspring API.
Installation
Linux & macOS
Install via shell script:
curl -fsSL https://raw.githubusercontent.com/StevanFreeborn/onx/main/scripts/install.sh | bash
To install a specific version or customize the install directory:
curl -fsSL https://raw.githubusercontent.com/StevanFreeborn/onx/main/scripts/install.sh | bash -s -- --version v0.1.0 --to ~/.local/bin
Windows
Install via PowerShell:
irm https://raw.githubusercontent.com/StevanFreeborn/onx/main/scripts/install.ps1 | iex
To install a specific version or customize the install directory:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/StevanFreeborn/onx/main/scripts/install.ps1))) -Version v0.1.0 -InstallDir "$HOME\.onx\bin"
Configuration
onx can be configured using command-line arguments, a JSON configuration file, or environment variables.
Precedence
- Command-line flags (
--api-key,--base-url,--pretty) - Configuration file (
~/.config/onx/config.jsonor--config <PATH>) - Environment variables (
ONSPRING_API_KEY,ONSPRING_BASE_URL)
Configuration File Format
Create ~/.config/onx/config.json:
{
"apiKey": "your-api-key",
"baseUrl": "https://api.onspring.com",
"pretty": true
}
Description
An agent-friendly CLI (built in Rust btw) for the Onspring API
166 KiB
0 Stars
1 Watchers
0 Forks
Languages
Rust
95.4%
Shell
2.6%
PowerShell
2%