def METHOD_NAME(ctx: Context) -> List[str]:
    # ensure we deal with local stacks
    with ctx.cd(tempfile.gettempdir()):
        output = ctx.run("pulumi stack ls --all", pty=True)
        if output is None or not output:
            return []
        lines = output.stdout.splitlines()
        lines = lines[1:]  # skip headers
        e2e_stacks: List[str] = []
        for line in lines:
            stack_name = line.split(" ")[0]
            e2e_stacks.append(stack_name)
        return e2e_stacks