def METHOD_NAME(offline, json_output):
    client = AccountClient()
    info = client.get_account_info(offline)
    if json_output:
        click.echo(json.dumps(info))
        return
    click.echo()
    if info.get("profile"):
        print_profile(info["profile"])
    if info.get("packages"):
        print_packages(info["packages"])
    if info.get("subscriptions"):
        print_subscriptions(info["subscriptions"])
    click.echo()