When making a change to an environment or a workspace I know the name of what I want to change, but I need to lookup the ID to pass into the CLI. If I could pass in the name then it would save manually looking this up.
I can do this with multiple commands at the moment, and pipe it together, but it feels like something which the CLI could handle for me.
Example of getting an environment ID from name, and then piping that back to the get-workspaces command, filtering just on the environment:
scalr list-environments | jq '.[] | select(.name=="demo-aa") | .id' | xargs -I {} scalr get-workspaces -filter[environment]={}