chefctl

Version, currently main branch1 version
  • main branchlatestSep 27, 2026

github.com/howielauvehansen94/chefctl

No description declared in shard.yml.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  chefctl:
    github: howielauvehansen94/chefctl
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.22.0-dev
License
MIT
Author
HÃ¥vard Lauve Hansen
Target
  • chefctl from src/chefctl.cr

Dependencies

Runtime Dependencies

README

chefctl

A small Crystal CLI for the Chef Infra Server REST API.

Installation

shards install
crystal build src/chefctl.cr -o bin/chefctl

Usage

export CHEF_SERVER_URL=https://chef.example.com/organizations/myorg
export CHEF_USER=myuser
export CHEF_KEY="$HOME/.chef/myuser.pem"

chefctl nodes
chefctl node web01.example.com
chefctl get "search/node?q=platform:ubuntu"

Run chefctl --help for all commands and flags. The get command hits any org-relative endpoint, so search, data bags (get data), etc. work without dedicated commands.

Development

crystal spec