@credibledata/cred-cli 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-DEV.md +40 -0
- package/README.md +4 -31
- package/dist/client/api.js +277 -277
- package/dist/client/api.js.map +1 -1
- package/dist/client/base.js +1 -1
- package/dist/client/common.js +1 -1
- package/dist/client/configuration.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/clientconfiguration.js +1 -1
- package/dist/clientconfiguration.js.map +1 -1
- package/dist/commands/add.js +3 -1
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/connection/createconnections.js +13 -1
- package/dist/commands/connection/createconnections.js.map +1 -1
- package/generate-client.sh +22 -0
- package/package.json +3 -3
- package/src/client/api.ts +300 -282
- package/src/client/base.ts +1 -1
- package/src/client/common.ts +1 -1
- package/src/client/configuration.ts +1 -1
- package/src/client/index.ts +1 -1
- package/src/clientconfiguration.ts +1 -1
- package/src/commands/add.ts +10 -0
- package/src/commands/connection/createconnections.ts +17 -0
package/README-DEV.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# MS2 CLI
|
|
2
|
+
|
|
3
|
+
[](https://github.com/ms2data/service/actions/workflows/publish-cli.yml/badge.svg)
|
|
4
|
+
|
|
5
|
+
### Overview
|
|
6
|
+
|
|
7
|
+
This directory contains a simple CLI to create, update, delete, and list projects, packages, and versions in the MS2 Semantic Model Service.
|
|
8
|
+
|
|
9
|
+
### Build and Run Instructions
|
|
10
|
+
|
|
11
|
+
To build the CLI:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
npm run build
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
To install the CLI globally:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
sudo npm install -g .
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Once the CLI is install, you can login and set your default project:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
cred login kjnesbit
|
|
27
|
+
cred set project malloy-samples
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Then start publishing packages by changing to a package directory and running:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
cred publish
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
You can run the following command to get help on other commands:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
cred --help
|
|
40
|
+
```
|
package/README.md
CHANGED
|
@@ -1,40 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Cred CLI
|
|
2
2
|
|
|
3
3
|
[](https://github.com/ms2data/cli/actions/workflows/build.yml)
|
|
4
4
|
|
|
5
5
|
### Overview
|
|
6
6
|
|
|
7
|
-
This directory contains a simple CLI to create, update, delete, and list projects, packages, and versions in the
|
|
7
|
+
This directory contains a simple CLI to create, update, delete, and list projects, packages, and versions in the Credible's Semantic Model Service.
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Usage
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
For complete usage instructions and command reference, see the official documentation at [http://docs.credibledata.com/platform-admin/cli](http://docs.credibledata.com/platform-admin/cli).
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
npm run build
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
To install the CLI globally:
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
sudo npm install -g .
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Once the CLI is install, you can login and set your default project:
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
cred login kjnesbit
|
|
27
|
-
cred set project malloy-samples
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Then start publishing packages by changing to a package directory and running:
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
cred publish
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
You can run the following command to get help on other commands:
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
cred --help
|
|
40
|
-
```
|