cacheDir is getting set to the wrong information which causes the cat command to fail in the command line client. Repro:
The failure code for command line hence becomes:
There appears to be two issues at hand here:
1) The recent caching/getWithEntityBundle code changed what we store in cacheDir - it should be the basepath to where the file is located
2) The cat() function in _main_ is using an older way of accessing the file location. It uses a for loop over ALL files that are associated with the entity which means it does a merge of the cacheDir and the entity.files variables. We are no longer supporting multiple files with an entity and should just use entity.filepath.