Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 578 Bytes

reference.md

File metadata and controls

32 lines (22 loc) · 578 Bytes

+++ title = "Habitat command reference"

[menu.reference] title = "Habitat reference" +++

With Habitat-based Chef Infra Client builds, you can use the following common functions for troubleshooting.

List the gems used with Habitat builds

sudo hab pkg exec chef/chef-infra-client gem list

List all the gems used with Habitat builds

sudo hab pkg exec chef/chef-infra-client gem list --all

Get the install path

sudo hab pkg exec chef/chef-infra-client gem env

Get Ruby version

/hab/bin/hab pkg exec core/ruby3_1 ruby -v