code: def login(ctx):
      
      base_url = os.environ.get("ONE_CODEX_API_BASE", "https://app.onecodex.com")
      if not ctx.obj["API_KEY"]:
          _login(base_url)
      else:
          email = _login(base_url, api_key=ctx.obj["API_KEY"])
          ocx = Api(api_key=ctx.obj["API_KEY"], telemetry=ctx.obj["TELEMETRY"])
  
          # TODO: This should be protected or built in as a first class resource
          # with, e.g., connection error catching (it's not part of our formally documeted API at the moment)
          if ocx._client.Account.instances()["email"] != email:
              click.echo("Your login credentials do not match the provided email!", err=True)
              _remove_creds()
              ctx.exit(1)
docs: Add an API key (saved in ~/.onecodex)