machine-root — locate and manage the machine-root.json registry

USAGE
  machine-root <command> [arguments]

COMMANDS
  create
      Create an empty machine-root.json file in the user's home directory.
      Fails if the file already exists.

  get <key>
      Print the value associated with <key>.
      Fails if the registry file or key does not exist.

  set <key> <value>
      Set or update the value for <key>.
      Fails if the registry file does not exist.

  delete <key>
      Delete the entry for <key>.
      Fails if the registry file or key does not exist.

  keys
      List all keys in the registry.
      Fails if the registry file does not exist.

  locate
      Print the path to the active machine-root.json file.
      Fails if no registry file can be found.

  help
      Show this help message.

RESOLUTION ORDER
  1. MACHINE_ROOT environment variable
  2. ./machine-root.json
  3. ~/machine-root.json
  4. Machine-level file
     - Windows: C:/machine-root.json
     - Linux:   /etc/machine-root.json

EXAMPLES
  machine-root create
  machine-root set zoo.projects C:/lion/zoo/projects
  machine-root get zoo.projects
  machine-root keys
  machine-root locate

NOTES
  - The registry file must be created explicitly using 'machine-root create'.
  - All commands fail if the registry file is not found.
  - Keys are simple strings; values are typically filesystem paths.
