You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A group of commands to interact with containers in DataHub.
283
+
**🤝 Version Compatibility:**`acryl-datahub>=0.15.0.5`
284
+
285
+
The `session` group of commands allows you to manage DataHub sessions to multiple instances using the same cli. The session information will be store in a local file under `~/.datahub/sessions.json`.
286
+
which can be inspected at any time.
286
287
287
-
e.g. You can use this to apply a tag to all datasets recursively in this container.
288
288
```shell
289
-
datahub container tag --container-urn "urn:li:container:0e9e46bd6d5cf645f33d5a8f0254bc2d" --tag-urn "urn:li:tag:tag1"
create Create profile with which to connect to a DataHub instance
299
+
delete Delete a session profile
300
+
list List all session profiles
301
+
save Save the current active datahubenv config as a session
302
+
use Set the active session
303
+
```
304
+
305
+
Here we detail the sub-commands available under the dataproduct group of commands:
306
+
307
+
#### create
308
+
309
+
Use this command to create a new datahub session. This is similar to [datahub init](#init) with an extra step to fill out the name of the *profile* under which to save the session. The profile name is important as it uniquely identifies the name of the session.
310
+
311
+
```shell
312
+
datahub session create
313
+
```
314
+
315
+
:::note
316
+
This command has a flag `--use-password`, that can be used to authenticate to the instance using a username/password combo and dynamically generate an access token with an 1 hour validaty for that username.
317
+
:::
318
+
319
+
#### update
320
+
321
+
Use this command to update an existing session identified by the profile name.
322
+
A form will then appear for the user to fill out, this will be prefilled with the existing value if it exists or a default exists.
323
+
324
+
```shell
325
+
datahub session update -p <profile name>
326
+
```
327
+
328
+
#### delete
329
+
330
+
Use this command to delete an existing session identified by the profile name.
331
+
332
+
```shell
333
+
datahub session delete -p <profile name>
334
+
```
335
+
336
+
#### list
337
+
338
+
Use this command to list all existing sessions available in `~/.datahub/sessions.json`.
339
+
340
+
```shell
341
+
datahub session list
342
+
```
343
+
344
+
#### save
345
+
346
+
Use this command to save the existing configuration stored in `~/.datahubenv` as a session with the specified name.
347
+
348
+
```shell
349
+
datahub session save -p <profile name>
350
+
```
351
+
352
+
#### use
353
+
354
+
Command used to specify which profile to use. This overwrites whatever is in `~/.datahubenv`.
355
+
356
+
```shell
357
+
datahub session use -p <profile name>
293
358
```
294
359
295
360
### check
@@ -626,6 +691,18 @@ Use this to delete a Data Product from DataHub. Default to `--soft` which preser
0 commit comments