@@ -56,17 +56,20 @@ Run the TerminusDB server.
56
56
57
57
` terminusdb list OPTIONS `
58
58
59
- List databases.
59
+ List available databases. [ DEPRECATED ]
60
60
61
61
* ` -h ` , ` --help ` =[ value] :
62
62
print help for the ` list ` command
63
63
64
+ * ` -b ` , ` --branches ` =[ value] :
65
+ also describe the available branches
66
+
64
67
* ` -j ` , ` --json ` =[ value] :
65
68
Return a JSON as the result of the ` list ` command
66
69
67
70
### optimize
68
71
69
- ` terminusdb optimize OPTIONS `
72
+ ` terminusdb optimize DB_SPEC OPTIONS `
70
73
71
74
Optimize a database (including _ system and _ meta).
72
75
@@ -161,7 +164,7 @@ Pull a branch from a database.
161
164
print help for the ` pull ` command
162
165
163
166
* ` -e ` , ` --remote-branch ` =[ value] :
164
- set the branch on the remote for push
167
+ set the branch on the remote for pull
165
168
166
169
* ` -r ` , ` --remote ` =[ value] :
167
170
the name of the remote to use
@@ -177,7 +180,7 @@ Pull a branch from a database.
177
180
178
181
### fetch
179
182
180
- ` terminusdb fetch BRANCH_SPEC `
183
+ ` terminusdb fetch DB_SPEC `
181
184
182
185
fetch data from a remote.
183
186
@@ -264,10 +267,10 @@ or two commits (path required).
264
267
document id to use for comparisons
265
268
266
269
* ` -p ` , ` --before_commit ` , ` --before-commit ` =[ value] :
267
- Commit of the * before* document(s)
270
+ Commit or branch of the * before* document(s)
268
271
269
272
* ` -s ` , ` --after_commit ` , ` --after-commit ` =[ value] :
270
- Commit of the * after* document(s)
273
+ Commit or branch of the * after* document(s)
271
274
272
275
### apply
273
276
@@ -311,6 +314,15 @@ Get the log for a branch given by DB_SPEC.
311
314
* ` -j ` , ` --json ` =[ value] :
312
315
return log as JSON
313
316
317
+ ### reset
318
+
319
+ ` terminusdb reset BRANCH_SPEC COMMIT_OR_COMMIT_SPEC `
320
+
321
+ Reset the branch at BRANCH_SPEC to the COMMIT_OR_COMMIT_SPEC
322
+
323
+ * ` -h ` , ` --help ` =[ value] :
324
+ print help for the ` reset ` command
325
+
314
326
### branch create
315
327
316
328
` terminusdb branch create BRANCH_SPEC OPTIONS `
@@ -321,7 +333,7 @@ Create a branch.
321
333
print help for the ` branch create ` sub command
322
334
323
335
* ` -o ` , ` --origin ` =[ value] :
324
- the origin branch to use
336
+ the origin branch to use (false for none)
325
337
326
338
### branch delete
327
339
@@ -332,6 +344,24 @@ Delete a branch.
332
344
* ` -h ` , ` --help ` =[ value] :
333
345
print help for the ` branch delete ` sub command
334
346
347
+ ### db list
348
+
349
+ ` terminusdb list DB_SPEC [.. DB_SPECN] OPTIONS `
350
+
351
+ List available databases.
352
+
353
+ * ` -h ` , ` --help ` =[ value] :
354
+ print help for the ` list ` command
355
+
356
+ * ` -b ` , ` --branches ` =[ value] :
357
+ also describe the available branches
358
+
359
+ * ` -v ` , ` --verbose ` =[ value] :
360
+ return lots of metadata
361
+
362
+ * ` -j ` , ` --json ` =[ value] :
363
+ Return a JSON as the result of the ` list ` command
364
+
335
365
### db create
336
366
337
367
` terminusdb db create DATABASE_SPEC OPTIONS `
@@ -356,10 +386,10 @@ Create a database.
356
386
* ` -k ` , ` --schema ` =[ value] :
357
387
whether to use a schema
358
388
359
- * ` -d ` , ` --data-prefix ` =[ value] :
389
+ * ` -d ` , ` --data_prefix ` , ` -- data-prefix` =[ value] :
360
390
uri prefix to use for data
361
391
362
- * ` -s ` , ` --schema-prefix ` =[ value] :
392
+ * ` -s ` , ` --schema_prefix ` , ` -- schema-prefix` =[ value] :
363
393
uri prefix to use for schema
364
394
365
395
* ` -x ` , ` --prefixes ` =[ value] :
@@ -380,6 +410,30 @@ Delete a database.
380
410
* ` -f ` , ` --force ` =[ value] :
381
411
force the deletion of the database (unsafe)
382
412
413
+ ### db update
414
+
415
+ ` terminusdb db update DATABASE_SPEC OPTIONS `
416
+
417
+ Update a database setting the OPTIONS in an existing database.
418
+
419
+ * ` -h ` , ` --help ` =[ value] :
420
+ print help for the ` db update ` sub command
421
+
422
+ * ` -l ` , ` --label ` =[ value] :
423
+ label to use for this database
424
+
425
+ * ` -c ` , ` --comment ` =[ value] :
426
+ long description of this database
427
+
428
+ * ` -p ` , ` --public ` =[ value] :
429
+ whether this database is to be public
430
+
431
+ * ` -k ` , ` --schema ` =[ value] :
432
+ whether to use a schema
433
+
434
+ * ` -x ` , ` --prefixes ` =[ value] :
435
+ Explicitly defined prefix set (in JSON)
436
+
383
437
### doc insert
384
438
385
439
` terminusdb doc insert DATABASE_SPEC OPTIONS `
@@ -455,6 +509,9 @@ Replace documents.
455
509
* ` -d ` , ` --data ` =[ value] :
456
510
document data
457
511
512
+ * ` -j ` , ` --raw_json ` , ` --raw-json ` =[ value] :
513
+ replace as raw json
514
+
458
515
* ` -c ` , ` --create ` =[ value] :
459
516
create document if it does not exist
460
517
@@ -467,7 +524,7 @@ Query documents.
467
524
* ` -h ` , ` --help ` =[ value] :
468
525
print help for the ` doc get ` sub command
469
526
470
- * ` -g ` , ` --graph_type ` =[ value] :
527
+ * ` -g ` , ` --graph_type ` , ` --graph-type ` =[ value] :
471
528
graph type (instance or schema)
472
529
473
530
* ` -s ` , ` --skip ` =[ value] :
@@ -497,6 +554,180 @@ Query documents.
497
554
* ` -q ` , ` --query ` =[ value] :
498
555
document query search template
499
556
557
+ ### role create
558
+
559
+ ` terminusdb role create ROLE_NAME ACTION_1 .. ACTION_N OPTIONS `
560
+
561
+ Create a new role with the listed actions. Actions may be any of:
562
+ "create_database", "delete_database", "class_frame",
563
+ "clone", "fetch", "push",
564
+ "branch", "rebase", "instance_read_access", "instance_write_access",
565
+ "schema_read_access", "schema_write_access", "meta_read_access",
566
+ "meta_write_access", "commit_read_access", "commit_write_access",
567
+ "manage_capabilities"
568
+
569
+ * ` -h ` , ` --help ` =[ value] :
570
+ print help for the ` role create ` sub command
571
+
572
+ ### role delete
573
+
574
+ ` terminusdb role create ROLE_ID_OR_ROLE_NAME `
575
+
576
+ Delete a role from the system database
577
+
578
+ * ` -h ` , ` --help ` =[ value] :
579
+ print help for the ` role delete ` sub command
580
+
581
+ * ` -i ` , ` --id ` =[ value] :
582
+ Interpret argument as a role Id rather than a name.
583
+
584
+ ### role update
585
+
586
+ ` terminusdb role update ROLE_ID_OR_ROLE_NAME ACTIONS OPTIONS `
587
+
588
+ Update a role from the system database
589
+
590
+ * ` -h ` , ` --help ` =[ value] :
591
+ print help for the ` role update ` sub command
592
+
593
+ * ` -i ` , ` --id ` =[ value] :
594
+ Interpret argument as a role Id rather than a name.
595
+
596
+ ### role get
597
+
598
+ ` terminusdb role get <ROLE_ID_OR_ROLE_NAME> `
599
+
600
+ Get a role description from name or id, or all roles if unspecified.
601
+
602
+ * ` -h ` , ` --help ` =[ value] :
603
+ print help for the ` role get ` sub command
604
+
605
+ * ` -i ` , ` --id ` =[ value] :
606
+ Interpret argument as a role id rather than a name.
607
+
608
+ * ` -j ` , ` --json ` =[ value] :
609
+ Return answer as a JSON document
610
+
611
+ ### organization create
612
+
613
+ ` terminusdb organization create ORGANIZATION_NAME `
614
+
615
+ Create an organization with a given name.
616
+
617
+ * ` -h ` , ` --help ` =[ value] :
618
+ print help for the ` organization create ` sub command
619
+
620
+ ### organization delete
621
+
622
+ ` terminusdb organization delete ORGANIZATION_NAME_OR_ID `
623
+
624
+ Create an organization with a given name or id.
625
+
626
+ * ` -h ` , ` --help ` =[ value] :
627
+ print help for the ` organization delete ` sub command
628
+
629
+ * ` -i ` , ` --id ` =[ value] :
630
+ Interpret argument as an organization id rather than a name.
631
+
632
+ ### organization get
633
+
634
+ ` terminusdb organization get <ORGANIZATION_NAME_OR_ID> `
635
+
636
+ Get an organization from its name or id, or list all if unspecified.
637
+
638
+ * ` -h ` , ` --help ` =[ value] :
639
+ print help for the ` organization get ` sub command
640
+
641
+ * ` -i ` , ` --id ` =[ value] :
642
+ Interpret argument as an organization id rather than a name.
643
+
644
+ * ` -j ` , ` --json ` =[ value] :
645
+ Return answer as a JSON document
646
+
647
+ ### user create
648
+
649
+ ` terminusdb user create USER `
650
+
651
+ Create a user with a given name USER
652
+
653
+ * ` -h ` , ` --help ` =[ value] :
654
+ print help for the ` user create ` sub command
655
+
656
+ * ` -p ` , ` --password ` =[ value] :
657
+ Specify the password to use for the user
658
+
659
+ ### user delete
660
+
661
+ ` terminusdb organization delete USER `
662
+
663
+ Delete a user with a given name or ID.
664
+
665
+ * ` -h ` , ` --help ` =[ value] :
666
+ print help for the ` user delete ` sub command
667
+
668
+ * ` -i ` , ` --id ` =[ value] :
669
+ Interpret argument as an organization id rather than a name.
670
+
671
+ ### user get
672
+
673
+ ` terminusdb user get <USER_NAME_OR_ID> `
674
+
675
+ Get a user from its name or id, or list all if unspecified.
676
+
677
+ * ` -h ` , ` --help ` =[ value] :
678
+ print help for the ` organization get ` sub command
679
+
680
+ * ` -i ` , ` --id ` =[ value] :
681
+ Interpret argument as an organization id rather than a name.
682
+
683
+ * ` -c ` , ` --capability ` =[ value] :
684
+ Report on all capabilities of this user.
685
+
686
+ * ` -j ` , ` --json ` =[ value] :
687
+ Return answer as a JSON document
688
+
689
+ ### user password
690
+
691
+ ` terminusdb user password USER `
692
+
693
+ Change passowrd for user USER
694
+
695
+ * ` -h ` , ` --help ` =[ value] :
696
+ print help for the ` user create ` sub command
697
+
698
+ * ` -p ` , ` --password ` =[ value] :
699
+ Specify the password to use for the user
700
+
701
+ ### capability grant
702
+
703
+ ` terminusdb capability grant USER SCOPE ROLE1 <...ROLEN> `
704
+
705
+ Grant ROLE1 ... ROLEN over SCOPE to USER
706
+
707
+ * ` -h ` , ` --help ` =[ value] :
708
+ print help for the ` store init ` sub command
709
+
710
+ * ` -i ` , ` --ids ` =[ value] :
711
+ Should the User, Scope and Role be treated as IDs or names
712
+
713
+ * ` -s ` , ` --scope_type ` , ` --scope-type ` =[ value] :
714
+ Should the scope be interpreted as a ` database ` (default) or an ` organization `
715
+
716
+ ### capability revoke
717
+
718
+ ` terminusdb capability revoke USER SCOPE ROLE1 <...ROLEN> `
719
+
720
+ Revoke ROLE1 ... ROLEN over SCOPE from USER
721
+
722
+ * ` -h ` , ` --help ` =[ value] :
723
+ print help for the ` store init ` sub command
724
+
725
+ * ` -i ` , ` --ids ` =[ value] :
726
+ Should the User, Scope and Role be treated as IDs or names
727
+
728
+ * ` -s ` , ` --scope_type ` , ` --scope-type ` =[ value] :
729
+ Should the scope be interpreted as a ` database ` (default) or an ` organization `
730
+
500
731
### store init
501
732
502
733
` terminusdb store init OPTIONS `
@@ -612,7 +843,8 @@ List remotes.
612
843
613
844
The designation of databases, repositories, the associated commit
614
845
graph of a database, and various graphs as used in the above command
615
- requires the use of an appropriate descriptor path.
846
+ requires the use of an appropriate descriptor path which is referred to
847
+ as the DB_SPEC.
616
848
617
849
* ` _system ` :
618
850
This is the system meta-data, which contains the user information,
@@ -644,6 +876,17 @@ requires the use of an appropriate descriptor path.
644
876
The descriptor which allows an individual commit to be addressed
645
877
directly.
646
878
879
+ For commands that refer to a GRAPH_SPEC, it should be a DB_SPEC
880
+ (specifying the precise branch if a database) followed by one of:
881
+
882
+ * ` DB_SPEC/instance `
883
+
884
+ * ` DB_SPEC/schema `
885
+
886
+ For example:
887
+
888
+ ` terminusdb triples dump admin/people/local/branch/main/schema `
889
+
647
890
## ENVIRONMENT
648
891
649
892
* ` TERMINUSDB_SERVER_NAME ` :
756
999
757
1000
[ Paulo Moura] ( https://github.com/pmoura )
758
1001
759
-
1002
+
0 commit comments