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.
284
+
**🤝 Version Compatibility:**`acryl-datahub>=0.15.0.5`
285
+
286
+
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`.
287
+
which can be inspected at any time.
286
288
287
-
e.g. You can use this to apply a tag to all datasets recursively in this container.
288
289
```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
300
+
delete Delete a session profile
301
+
list List all session profiles
302
+
save Save the current active datahubenv config as a session
303
+
use Set the active session
304
+
```
305
+
306
+
Here we detail the sub-commands available under the dataproduct group of commands:
307
+
308
+
#### create
309
+
310
+
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.
311
+
312
+
```shell
313
+
datahub session create
314
+
```
315
+
316
+
:::note
317
+
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.
318
+
:::
319
+
320
+
#### update
321
+
322
+
Use this command to update an existing session identified by the profile name.
323
+
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.
324
+
325
+
```shell
326
+
datahub session update -p <profile name>
327
+
```
328
+
329
+
#### delete
330
+
331
+
Use this command to delete an existing session identified by the profile name.
332
+
333
+
```shell
334
+
datahub session delete -p <profile name>
335
+
```
336
+
337
+
#### list
338
+
339
+
Use this command to list all existing sessions available in `~/.datahub/sessions.json`.
340
+
341
+
```shell
342
+
datahub session list
343
+
```
344
+
345
+
#### save
346
+
347
+
Use this command to save the existing configuration stored in `~/.datahubenv` as a session with the specified name.
348
+
349
+
```shell
350
+
datahub session save -p <profile name>
351
+
```
352
+
353
+
#### use
354
+
355
+
Command used to specify which profile to use. This overwrites whatever is in `~/.datahubenv`.
356
+
357
+
```shell
358
+
datahub session use -p <profile name>
293
359
```
294
360
295
361
### check
@@ -626,6 +692,18 @@ Use this to delete a Data Product from DataHub. Default to `--soft` which preser
0 commit comments