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.
385
+
**🤝 Version Compatibility:**`acryl-datahub>=0.15.0.5`
386
+
387
+
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`.
create Create profile with which to connect to a DataHub instance
401
+
delete Delete a session profile
402
+
list List all session profiles
403
+
save Save the current active datahubenv config as a session
404
+
use Set the active session
405
+
```
406
+
407
+
Here we detail the sub-commands available under the dataproduct group of commands:
408
+
409
+
#### create
410
+
411
+
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.
412
+
413
+
```shell
414
+
datahub session create
415
+
```
416
+
417
+
:::note
418
+
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.
419
+
:::
420
+
421
+
#### update
422
+
423
+
Use this command to update an existing session identified by the profile name.
424
+
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.
425
+
426
+
```shell
427
+
datahub session update -p <profile name>
428
+
```
429
+
430
+
#### delete
431
+
432
+
Use this command to delete an existing session identified by the profile name.
433
+
434
+
```shell
435
+
datahub session delete -p <profile name>
436
+
```
437
+
438
+
#### list
439
+
440
+
Use this command to list all existing sessions available in `~/.datahub/sessions.json`.
441
+
442
+
```shell
443
+
datahub session list
444
+
```
445
+
446
+
#### save
447
+
448
+
Use this command to save the existing configuration stored in `~/.datahubenv` as a session with the specified name.
449
+
450
+
```shell
451
+
datahub session save -p <profile name>
452
+
```
388
453
389
454
e.g. You can use this to apply a tag to all datasets recursively in this container.
390
455
456
+
#### use
457
+
458
+
Command used to specify which profile to use. This overwrites whatever is in `~/.datahubenv`.
459
+
391
460
```shell
392
-
datahub container tag --container-urn "urn:li:container:0e9e46bd6d5cf645f33d5a8f0254bc2d" --tag-urn "urn:li:tag:tag1"
0 commit comments