Skip to main content

No project description provided

Project description

BOSA CLI

A command-line interface for managing BOSA integrations and authentication.

Installation

The CLI is included with bosa-core. Install it using:

pip install bosa-core

Usage

Authentication

First, authenticate with your client credentials:

bosa auth login

You'll be prompted for:

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

For development/testing with custom API URL:

bosa auth login --api-url http://localhost:8000

Check authentication status:

bosa auth status

Logout and clear session:

bosa auth logout

Integration Management

List all available connectors and their integration status:

bosa integrations
# or
bosa integrations list

This shows a simple table with:

  • Connector: Name of each available connector
  • Integrated: ✓ if you have integrated with that connector, ✗ if not

Add a new integration (initiates OAuth flow):

bosa integrations add github
bosa integrations add google

Show all accounts for a specific connector:

bosa integrations show google
bosa integrations show github

This displays:

  • Number of integrations found
  • Table showing account identifiers for each integration

Remove a specific integration:

bosa integrations remove github user@example.com
bosa integrations remove google john.doe@gmail.com

User Management

Create a new user:

bosa users create john.doe@example.com

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

Configuration

The CLI stores configuration in ~/.bosa/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.

Examples

Complete workflow

  1. Login with credentials:

    bosa auth login
    # Enter your client API key, username, and user secret when prompted
    
  2. View available integrations:

    bosa integrations
    
  3. Add GitHub integration:

    bosa integrations add github
    # Follow the OAuth flow in your browser
    
  4. Check your GitHub accounts:

    bosa integrations show github
    
  5. Create a new user (if you have permissions):

    bosa users create newuser@example.com
    

Development workflow

For local development:

# Login to local API
bosa auth login --api-url http://localhost:8000

# Check status
bosa auth status

# List integrations
bosa integrations

# Add local integration
bosa integrations add github

Available Connectors

The available connectors depend on your BOSA API 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

Help

Get help for any command:

bosa --help
bosa auth --help
bosa integrations --help
bosa users --help

Configuration Options

  • --api-url: Custom BOSA API URL (only available during auth login)
  • --verbose: Enable verbose output

Security Notes

  • All credentials are stored securely in ~/.bosa/config.json with restricted permissions (600)
  • User secrets are only displayed once during user creation
  • Tokens expire based on server configuration
  • API URL is stored in the session and used for subsequent commands
  • Always keep your credentials secure and never share them
  • Use bosa auth logout to clear stored credentials when done

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bosa_cli-0.0.0a1.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bosa_cli-0.0.0a1-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file bosa_cli-0.0.0a1.tar.gz.

File metadata

  • Download URL: bosa_cli-0.0.0a1.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.12 Linux/6.14.0-63.fc42.x86_64

File hashes

Hashes for bosa_cli-0.0.0a1.tar.gz
Algorithm Hash digest
SHA256 ed4062b17d6a5e3bf3f3281fcf351e366a256e575b7e12c7ef43b10d97791367
MD5 810b7920a0eba8c98ed353a6d88e4deb
BLAKE2b-256 620a2eda65a6e624e77b227e65e2c0df3fde27790271bfe45cfd72db83fea54c

See more details on using hashes here.

File details

Details for the file bosa_cli-0.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: bosa_cli-0.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.12 Linux/6.14.0-63.fc42.x86_64

File hashes

Hashes for bosa_cli-0.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4d79b5e7a6441fb0961801d968b2f1765f8f990bc72769b29ac67a9d3c02991
MD5 92990dadeba2a9ad53e530e30bbf75e8
BLAKE2b-256 0cd1490ab12bd2637e295a935088a66fb92502bea9299b72fc631e11517fbaf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page