Skip to content

Automate searching for environment & workspace by name #10

@anthonyangel

Description

@anthonyangel

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]={}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions