Skip to content

Commit c96cb04

Browse files
committed
Update docs
1 parent 677b275 commit c96cb04

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ See [ONBOARDING.md](ONBOARDING.md) for step by step walk through.
44

55
## TL;DR
66

7-
You can use BDCLI to fully managed your BoilingData account, [deploy and manage Data Taps](https://www.taps.boilingdata.com/) (`bdcli sandbox`), including integration with your AWS Account (if you have one), share and consume data sets to/from other users. See also our demo application [app.boilingdata.com](https://app.boilingdata.com).
7+
You can use BDCLI to:
8+
9+
- Register and managed your BoilingData account
10+
- [Deploy and manage Data Taps](https://www.taps.boilingdata.com/) (`bdcli sandbox`), including integration with your AWS Account (if you have one), share and consume data sets to/from other users
11+
- Run Boiling API queries, get signed WSS URL for using e.g. with `wscat` or other tools able to connect to WebSockets (like [Mosaic duckdb-server](https://uwdata.github.io/mosaic/duckdb/))
12+
13+
> See also our simple stateless demo application [app.boilingdata.com](https://app.boilingdata.com).
814
915
```shell
1016
% npm install -g @boilingdata/boilingdata-bdcli
@@ -20,7 +26,17 @@ Commands:
2026
aws Setup and configure your AWS account integration with BoilingData
2127
domain Admin setup and configuration for your domain (.e.g @boilingdata.com, @mycompany.com)
2228
sandbox Managa Boiling S3 Sandboxes with IaC templates
29+
api Boiling query API operations: run SQL, get signed WSS URL etc.
2330
help [command] display help for command
31+
32+
% bdcli api query -s "SELECT * FROM parquet_scan('s3://boilingdata-demo/test.parquet') LIMIT 2;" --disable-spinner
33+
[
34+
{
35+
"id": 1,
36+
"first_name": "Amanda",
37+
"last_name": "Jordan"
38+
}
39+
]
2440
```
2541

2642
You can create BoilingData assumable IAM role into your AWS account with clear scope. The IAM Role is in your AWS account, you can review, and modify it if you like.

src/bdcli/commands/api/bdcli-api-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function query(options: any, _command: cmd.Command): Promise<void> {
2929
}
3030

3131
const program = new cmd.Command("bdcli api query")
32-
.addOption(new cmd.Option("--sql <sqlQuery>", "SQL clause").makeOptionMandatory())
32+
.addOption(new cmd.Option("-s, --sql <sqlQuery>", "SQL clause").makeOptionMandatory())
3333
.action(async (options, command) => await query(options, command));
3434

3535
(async () => {

src/bdcli/utils/spinner_util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export function spinnerWarn(message?: string): void {
4040
}
4141

4242
export function spinnerError(message?: string, forceExit = true): void {
43-
if (isEnabled) spinner.fail(message ? error(message) : undefined);
43+
// We show errors regardless whether the spinner is disabled
44+
spinner.fail(message ? error(message) : undefined);
4445
if (forceExit) process.exit(1); // error
4546
}
4647

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ program
1212
.command("aws", "Setup and configure your AWS account integration with BoilingData")
1313
.command("domain", "Admin setup and configuration for your domain (.e.g @boilingdata.com, @mycompany.com)")
1414
.command("sandbox", "Managa Boiling S3 Sandboxes with IaC templates")
15-
.command("api", "Get signed WSS URL etc.");
15+
.command("api", "Boiling query API operations: run SQL, get signed WSS URL etc.");
1616

1717
program.parse(process.argv);

0 commit comments

Comments
 (0)