The Ocelloids Data Steward CLI fetches aggregated data in JSON format from the Ocelloids data steward agent and outputs it to stdout
, allowing you to easily use it with other command-line tools like jq
.
Ocelloids Data Steward Agent command-line interface
Usage:
steward [command]
Available Commands:
fetch Prints assets or chains data to stdout
help Help about any command
Flags:
-k, --api-key string Ocelloids API key
--config string config file (default is $HOME/.stw.yaml)
-c, --cursor string Page cursor
-h, --help help for steward
-u, --http-url string HTTP API base URL (default "https://api.ocelloids.net")
-l, --limit uint16 Max results per page (default 25)
Use "steward [command] --help" for more information about a command.
To install the Ocelloids Data Steward CLI, download the appropriate binary for your platform from the GitHub Releases page.
Steps to Install
-
Visit the releases page: Go to the Ocelloids Data Steward CLI Releases.
-
Choose your platform: Select the binary that matches your operating system (e.g., Linux, macOS, Windows) and architecture (e.g., x86, x64, ARM).
-
Download the binary package: Click on the appropriate binary to start the download.
-
Extract the binary executable: Once downloaded, extract the
go-steward
binary from the package. -
Move the binary to a directory in your PATH: Move the binary to a directory included in your system's PATH environment variable for easy access:
mv go-steward /usr/local/bin/steward
-
Verify installation: Confirm the installation by running the following command:
steward help
Fetch assets data and save it to a JSON Lines (JSONL) file:
steward fetch assets > assets.jsonl
To convert the JSONL file into a JSON array, use jq
:
jq --slurp . < assets.jsonl > assets.json
Fetch chains data and save it to a JSONL file:
steward fetch chains > chains.jsonl
Have fun!