mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
[Feature] CLI README (#6402)
* cli readme * Update README.md * suggestions @IgorWounds
This commit is contained in:
1723
cli/CONTRIBUTING.md
vendored
1723
cli/CONTRIBUTING.md
vendored
File diff suppressed because it is too large
Load Diff
68
cli/README.md
vendored
68
cli/README.md
vendored
@@ -1,3 +1,67 @@
|
||||
# OpenBB CLI
|
||||
# OpenBB Platform CLI
|
||||
|
||||
Work in progress.
|
||||
[](https://pepy.tech/project/openbb)
|
||||
[](https://github.com/OpenBB-finance/OpenBBTerminal)
|
||||
|
||||
| OpenBB is committed to build the future of investment research by focusing on an open source infrastructure accessible to everyone, everywhere. |
|
||||
| :---------------------------------------------------------------------------------------------------------------------------------------------: |
|
||||
|  |
|
||||
| Check our website at [openbb.co](www.openbb.co) |
|
||||
|
||||
## Overview
|
||||
|
||||
The OpenBB CLI is a command line interface that wraps [OpenBB Platform](https://docs.openbb.co/platform).
|
||||
|
||||
It offers a convenient way to interact with the OpenBB Platform and its extensions, as well as automate data collection via OpenBB Routine Scripts.
|
||||
|
||||
Find the most complete documentation, examples, and usage guides for the OpenBB Platform CLI [here](https://my.openbb.co/app/cli).
|
||||
|
||||
## Installation
|
||||
|
||||
The command below provides access to the all the available OpenBB extensions behind the OpenBB Platform, find the complete list [here](https://my.openbb.co/app/platform/extensions).
|
||||
|
||||
```bash
|
||||
pip install openbb-cli
|
||||
```
|
||||
|
||||
> Note: Find the most complete installation hints and tips [here](https://my.openbb.co/app/cli/installation).
|
||||
|
||||
After the installation is complete, you can deploy the OpenBB CLI by running the following command:
|
||||
|
||||
```bash
|
||||
openbb
|
||||
```
|
||||
|
||||
Which should result in the following output:
|
||||
|
||||

|
||||
|
||||
## API keys
|
||||
|
||||
To fully leverage the OpenBB Platform you need to get some API keys to connect with data providers. Here are the 3 options on where to set them:
|
||||
|
||||
1. OpenBB Hub
|
||||
2. Local file
|
||||
|
||||
### 1. OpenBB Hub
|
||||
|
||||
Set your keys at [OpenBB Hub](https://my.openbb.co/app/platform/credentials) and get your personal access token from <https://my.openbb.co/app/platform/pat> to connect with your account.
|
||||
|
||||
> Once you log in, on the Platform CLI (through the `/account` menu, all your credentials will be in sync with the OpenBB Hub.)
|
||||
|
||||
### 2. Local file
|
||||
|
||||
You can specify the keys directly in the `~/.openbb_platform/user_settings.json` file.
|
||||
|
||||
Populate this file with the following template and replace the values with your keys:
|
||||
|
||||
```json
|
||||
{
|
||||
"credentials": {
|
||||
"fmp_api_key": "REPLACE_ME",
|
||||
"polygon_api_key": "REPLACE_ME",
|
||||
"benzinga_api_key": "REPLACE_ME",
|
||||
"fred_api_key": "REPLACE_ME"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
2
openbb_platform/README.md
vendored
2
openbb_platform/README.md
vendored
@@ -80,7 +80,7 @@ To fully leverage the OpenBB Platform you need to get some API keys to connect w
|
||||
|
||||
### 1. OpenBB Hub
|
||||
|
||||
Set your keys at [OpenBB Hub](https://my.openbb.co/app/sdk/api-keys) and get your personal access token from <https://my.openbb.co/app/sdk/pat> to connect with your account.
|
||||
Set your keys at [OpenBB Hub](https://my.openbb.co/app/platform/credentials) and get your personal access token from <https://my.openbb.co/app/platform/pat> to connect with your account.
|
||||
|
||||
```python
|
||||
>>> from openbb import obb
|
||||
|
||||
Reference in New Issue
Block a user