georest.esri.cli.login¶
Sign in to ArcGIS Online or an ArcGIS Enterprise portal for georest.
Opens a browser for an OAuth 2.0 sign-in (enterprise SSO works) and saves the refresh token, so later processes - an MCP server, a notebook - pick the session up without a browser:
georest-login –portal https://myorg.maps.arcgis.com –client-id abc123 georest-login –status georest-login –logout
–portal and –client-id fall back to GEOREST_ESRI_PORTAL and GEOREST_ESRI_CLIENT_ID. The app must list http://127.0.0.1:<port>/callback as a redirect URL. Exit status is 0 on success, 1 otherwise.
Copyright 2026 Ryan Rock and Ian Housman
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Functions
|