A command-line interface for Blinkx CMS, written in Zig.
This project requires:
- Zig version: 0.14.0-dev.2851+b074fb7dd
It is strongly recommended to use ZVM (Zig Version Manager) to manage your Zig and ZLS versions.
- Install Zig
- Clone the repository
- Run
zig build
- Run the executable from
zig-out/bin/blinkx
This project uses the following external libraries:
- zig-cli - A command line argument parser for Zig
- Author: sam701
- License: MIT
- Used for CLI argument parsing and command structure
BLINKX_APIKEY
: Your Blinkx API key (can also be provided via --apikey flag)
$ ./zig-out/bin/blinkx --help
Usage: blinkx [OPTIONS] [COMMAND]
A CLI for Blinkx CMS
Options:
-h, --help Print this help message
-a, --apikey TEXT API key for authentication (required)
--version Print version information
Commands:
content Get content from Blinkx
$ ./zig-out/bin/blinkx content --help
Get content from Blinkx
Options:
-i, --itemid INT Content to display by itemid
-p, --projectid INT Content to display by project id
-v, --version STRING Content to display by version
-u, --page_url STRING Content to display by page url
-b, --body STRING Specific content fields to display (comma-separated)
Options: html,components,css,assets,fonts,styles
The CLI runs in development mode by default, which:
- Uses local development endpoints
- Provides additional debug logging
- Sets development-specific default values
To use production endpoints, modify the mode in the configuration.
Get content by item ID:
$ blinkx content --itemid 123
Get specific content fields:
$ blinkx content --itemid 123 --body "html,components,css"
Get content by project ID:
$ blinkx content --projectid 456
This project is licensed under the MIT License - see the LICENSE file for details.