def cli(ctx, resource):
    """
    Displays all locally cached <resource> versions available for installation.

    \b
    Available resources:
        ips (default)
        dev_tools
    """
    log = logging.getLogger('ipsv.setup')
    assert isinstance(ctx, Context)

    resource = str(resource).lower()

    if resource == 'ips':
        resource = IpsManager(ctx)
        for r in resource.versions.values():
            click.secho(r.version.vstring, bold=True)
        return

    if resource in ('dev_tools', 'dev tools'):
        resource = DevToolsManager(ctx)
        for r in resource.versions.values():
            click.secho('{v} ({id})'.format(v=r.version.vstring, id=r.version.vid), bold=True)
        return
Displays all locally cached <resource> versions available for installation.

    \b
    Available resources:
        ips (default)
        dev_tools