Skip to content

Commit bd66f69

Browse files
UnityCatalogCli et al.
1 parent 3250a21 commit bd66f69

File tree

8 files changed

+38
-2
lines changed

8 files changed

+38
-2
lines changed

docs/cli/CatalogCli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# CatalogCli

docs/cli/FunctionCli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# FunctionCli

docs/cli/SchemaCli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# SchemaCli

docs/cli/TableCli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# TableCli

docs/cli/UnityCatalogCli.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# UnityCatalogCli
22

3-
`UnityCatalogCli` can be [launched](#main) on command line (using `./bin/uc` command-line utility).
3+
`UnityCatalogCli` can be [launched](#main) on command line using `./bin/uc` command-line utility.
44

55
## Options
66

@@ -10,6 +10,36 @@ Personal access token (PAT) to authorize requests
1010

1111
When specified, `UnityCatalogCli` [creates an ApiClient](#getApiClient) that adds `Authorization` header with `Bearer [pat]` to every request.
1212

13+
### server
14+
15+
Default: `http://localhost:8080`
16+
17+
## Launching Standalone Application { #main }
18+
19+
`main` [creates an ApiClient](#getApiClient) and handles the command (specified as the first argument on command line).
20+
21+
Command | Handler
22+
-|-
23+
`catalog` | [CatalogCli](CatalogCli.md#handle)
24+
`function` | [FunctionCli](FunctionCli.md#handle)
25+
`schema` | [SchemaCli](SchemaCli.md#handle)
26+
`table` | [TableCli](TableCli.md#handle)
27+
`volume` | [VolumeCli](VolumeCli.md#handle)
28+
29+
## Creating ApiClient { #getApiClient }
30+
31+
```java
32+
ApiClient getApiClient(
33+
CommandLine cmd)
34+
```
35+
36+
`getApiClient` creates an [ApiClient](../client/ApiClient.md) with the following:
37+
38+
Attribute | Value
39+
-|-
40+
The host name of the UC service | [server](#server) option
41+
The port number of the UC service | The port from the [server](#server) option, if specified, or one of the following: <ul><li>`443` for `https` scheme<li>`8080` for `http` scheme</ul>
42+
1343
## Logging
1444

1545
`UnityCatalogCli` uses `etc/conf/cli.log4j2.properties` as the logging configuration file (via [log4j.configurationFile]({{ log4j.manual }}/configuration.html#system-properties) configuration property).

docs/cli/VolumeCli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# VolumeCli

docs/cli/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Unity Catalog CLI
22

3-
**Unity Catalog CLI** can be started using `./bin/uc` command-line utility (that runs [UnityCatalogCli](UnityCatalogCli.md)).
3+
**Unity Catalog CLI** can be started using `./bin/uc` command-line utility that runs [UnityCatalogCli](UnityCatalogCli.md).

docs/client/ApiClient.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ApiClient

0 commit comments

Comments
 (0)