No project description provided
Project description
BOSA CLI
A command-line interface for managing BOSA integrations and authentication.
Prerequisites
Prerequisites details
-
Python v3.11 or above (to run
python)- Using Conda (recommended): You can use Miniconda to install and manage Python versions.
-
BOSA API access (contact your administrator for credentials)
Installation
Install the CLI using:
pip install bosa-cli
Quick Start
Get up and create your first integration using BOSA CLI:
-
Login:
bosa auth login # Make sure you have access to bosa playground environment. # You will be prompted to enter: # Client API Key: sk-client-... # Username (User Identifier): your user identifier # User Secret: sk-user-...
-
View Available Integrations:
bosa integrationsYou should have 0 integration(s) count for each connector listed.
-
Add Your First Integration:
bosa 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.
-
Check your GitHub accounts:
After you have completed the OAuth flow, you can check your GitHub accounts.
bosa 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 BOSA integrations.
Command Reference
Authentication Commands
| Command | Description | Options |
|---|---|---|
bosa auth login |
Authenticate with client credentials | --api-url <url> |
bosa auth status |
Check current authentication status | - |
bosa 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 BOSA API URL (for development purposes)
Integration Commands
| Command | Description | Parameter(s) |
|---|---|---|
bosa integrations |
List all connectors and integration counts | - |
bosa integrations list |
Same as above (explicit) | - |
bosa integrations add <connector> |
Add new integration via OAuth flow | <connector>: github, google, etc. |
bosa integrations show <connector> |
Show all accounts for a connector | <connector>: github, google, etc. |
bosa integrations show <connector> <identifier> |
Show specific integration details | <connector>: github, google, etc. <identifier>: email/username |
bosa integrations remove <connector> <identifier> |
Remove specific integration | <connector>: github, google, etc. <identifier>: email/username |
bosa integrations select <connector> <identifier> |
Set integration as primary | <connector>: github, google, etc. <identifier>: email/username |
Examples:
bosa integrations # List all connectors
bosa integrations add github # Add GitHub integration
bosa integrations show google # Show all Google accounts
bosa integrations show google user@gmail.com # Show specific account details
bosa integrations remove github username # Remove GitHub integration
bosa integrations select google user@gmail.com # Set as primary Google account
User Commands
| Command | Description | Parameter(s) |
|---|---|---|
bosa users create <identifier> |
Create a new user account | <identifier>: email/username |
Example:
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.
Getting Help
Get help for any command:
bosa --help # Main help
bosa auth --help # Authentication commands help
bosa integrations --help # Integration commands help
bosa users --help # User management commands help
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bosa_cli-0.0.1b1.tar.gz.
File metadata
- Download URL: bosa_cli-0.0.1b1.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fa8fca7feccee3d2e7c236f9c188503821579589edc481fd4482ec13863c49d
|
|
| MD5 |
b1b753655256bfcd31c04d3da7a389c8
|
|
| BLAKE2b-256 |
daf6de057f40abac9b2b85dd726a22b9f848269b9ec5d7dc1fdbd1b7bf0eff06
|
File details
Details for the file bosa_cli-0.0.1b1-py3-none-any.whl.
File metadata
- Download URL: bosa_cli-0.0.1b1-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63e34451759330ecd04d8e2ae496970e77b30e26b3bd3fe0cc7d708cf2c44f8
|
|
| MD5 |
e981205a1211c0a3ecba4b285fee3c93
|
|
| BLAKE2b-256 |
380af5aadccbdddd329f5712bfca60a1b5b786e671cd6c2163b99e89875c77a7
|