Skip to main content

GL Connectors CLI

A command-line interface for managing GL Connectors integrations and authentication.

Prerequisites

Prerequisites details
  1. Python v3.11 or above (to run python)

    • Using Conda (recommended): You can use Miniconda to install and manage Python versions.
  2. Connector access (contact your administrator for credentials)

Installation

Install the CLI using:

pip install gl-connectors-cli

Quick Start

Get up and create your first integration using GL Connectors CLI:

  1. Login:

    glcon auth login
    # Make sure you have access to GL Connectors playground environment.
    # You will be prompted to enter:
    
    # Client API Key: sk-client-...
    # Username (User Identifier): your user identifier
    # User Secret: sk-user-...
    
  2. View Available Integrations:

    glcon integrations
    

    You should have 0 integration(s) count for each connector listed.

  3. Add Your First Integration:

    glcon integrations add github
    

    You should see the following message:

    ✓ OAuth flow initiated for github!
    Please visit the following URL to complete the integration:
    https://github.com/login/oauth/authorize?client_id=...
    

    Open the URL in your browser and follow the OAuth flow.

  4. Check your GitHub accounts:

    After you have completed the OAuth flow, you can check your GitHub accounts.

    glcon integrations show github
    

    Voila! You should see your GitHub accounts listed, as shown below:

    Integrations for github
    =======================
    ℹ Found 1 integration(s)
    
    User Identifier | Status
    ------------------------------------
    | your-github-username | ✓ Selected
    

That's it! You're now ready to manage your GL Connectors' integrations.

Command Reference

Authentication Commands

Command Description Options
glcon auth login Authenticate with client credentials --api-url <url>
glcon auth status Check current authentication status -
glcon auth logout Clear stored credentials -

Login prompts:

  • Client API Key: Your client API key (input hidden)
  • Username: Your user identifier
  • User Secret: Your user secret (input hidden)

Configuration Options:

  • --api-url: Custom Connector URL (for development purposes)

Integration Commands

Command Description Parameter(s)
glcon integrations List all connectors and integration counts -
glcon integrations list Same as above (explicit) -
glcon integrations add <connector> Add new integration via OAuth flow <connector>: github, google, etc.
glcon integrations show <connector> Show all accounts for a connector <connector>: github, google, etc.
glcon integrations show <connector> <identifier> Show specific integration details <connector>: github, google, etc. <identifier>: email/username
glcon integrations remove <connector> <identifier> Remove specific integration <connector>: github, google, etc. <identifier>: email/username
glcon integrations select <connector> <identifier> Set integration as primary <connector>: github, google, etc. <identifier>: email/username

Examples:

glcon integrations                           # List all connectors
glcon integrations add github                # Add GitHub integration
glcon integrations show google               # Show all Google accounts
glcon integrations show google user@gmail.com  # Show specific account details
glcon integrations remove github username    # Remove GitHub integration
glcon integrations select google user@gmail.com # Set as primary Google account

User Commands

Command Description Parameter(s)
glcon users create <identifier> Create a new user account <identifier>: email/username

Example:

glcon users create john.doe@example.com

Important: Save the user secret securely! It's only shown once.

Configuration

The CLI stores configuration in ~/.connector/config.json. This file contains:

  • Authentication session (client key, user token, API URL)
  • Session expiration information

The API URL is only configurable during authentication using the --api-url flag.

Getting Help

Get help for any command:

glcon --help                    # Main help
glcon auth --help              # Authentication commands help
glcon integrations --help      # Integration commands help
glcon users --help             # User management commands help

Available Connectors

The available connectors depend on your Connector configuration. Common connectors include:

  • github: GitHub API integration
  • google: Google services integration
  • google_drive: Google Drive integration
  • google_docs: Google Docs integration
  • google_mail: Google Mail integration

Contributing

We welcome contributions! Please see our documentation:

License

This project is maintained by the GL Connectors Team.

Metadata

Release files for gl-connectors-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gl-connectors-cli 0.1.0
File Size Uploaded
gl_connectors_cli-0.1.0.tar.gz 25.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gl-connectors-cli 0.1.0
File Interpreter ABI Platform
gl_connectors_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 50.5 kB

Release files / gl_connectors_cli-0.1.0.tar.gz

Download URL gl_connectors_cli-0.1.0.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c12329ddc676a6e464f11ae9b5bdb4bcdcfb7a3d0d35e6860ff2ef78b85373dc
BLAKE2b-256 checksum
How to use checksums
cd87dfc8c0b17bf7fe0dfb85adb6019a412e4a95a4040f2fc7c58e086f472a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.8.16

Release files / gl_connectors_cli-0.1.0-py3-none-any.whl

Download URL gl_connectors_cli-0.1.0-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af9f41bb162ee4c1e3a508e00a02770c099fa8edbcc3b71ff1bffa0e9183b612
BLAKE2b-256 checksum
How to use checksums
b99904428af24dcfe62c1b8710093d893001cf8637a191dcef168dc98858310d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.8.16

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page