forked from terminusdb/terminusdb-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathterminusdb.1.ronn.template
More file actions
168 lines (115 loc) · 5.09 KB
/
terminusdb.1.ronn.template
File metadata and controls
168 lines (115 loc) · 5.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
terminusdb -- command line interface to the terminusdb Graph DBMS
=============================================
## SYNOPSIS
`terminusdb [command subcommand positional_arguments] flags`
## DESCRIPTION
The terminusdb(1) command line tool allows users to interact with a database,
allowing common operations such as querying (and updating), database creation,
data ingestion and maintainence.
## COMMANDS
terminusdb accepts a command, sometimes followed by a subcommand. The
accepted commands are given here, along with their arguments.
${HELP}
## SYNTAX
The designation of databases, repositories, the associated commit
graph of a database, and various graphs as used in the above command
requires the use of an appropriate descriptor path.
* `_system`:
This is the system meta-data, which contains the user information,
organization information and database records.
* `<organization>/<database>`:
This is the most basic descriptor path and actually refers to
the more specific default path `<organization>/<database>/local/branch/main`.
* `<organization>/<database>/_meta`:
This is the repository graph associated with `database`. It contains
information about the local repository and all known remotes.
* `<organization>/<database>/<repository>`:
This is a longer form database designator which specifies which
respository we would like to address. It refers implicitly to
`<organization>/<database>/<repository>/branch/main`.
* `<organization>/<database>/<repository>/_commits`:
The commit graph associated with a given database. This graph
contains metadata about branch histories with their commit objects
including the authorship and time.
* `<organization>/<database>/<repository>/branch/<branch>`:
The most specific branch descriptor, allows you to address a
branch other than main.
* `<organization>/<database>/<repository>/commit/<commit>`:
The descriptor which allows an individual commit to be addressed
directly.
## ENVIRONMENT
* `TERMINUSDB_SERVER_NAME`:
Set the servername to use for` terminusdb serve`. Default is
`127.0.0.1`.
* `TERMINUSDB_SERVER_PORT`:
Set the port to use for` terminusdb serve`. Default is `6363`.
* `TERMINUSDB_SERVER_WORKERS`:
Set the number of worker threads to use for `terminusdb serve`.
Default is `8`.
* `TERMINUSDB_SERVER_MAX_TRANSACTION_RETRIES`:
Set the transaction retry count. Default is `3`.
* `TERMINUSDB_SERVER_DB_PATH`:
Set the location of the storage volume to be used by `terminusdb`
operations. Can be addressed relative to current path using
`./`<path>. Default is `./storage/db`.
* `TERMINUSDB_SERVER_JWT_PUBLIC_KEY_PATH`:
Set the public key path for JWT. Default is `''`.
* `TERMINUSDB_SERVER_JWT_PUBLIC_KEY_ID`:
Set the public key identifier for JWT. Default is `''`.
* `TERMINUSDB_CONSOLE_BASE_URL`:
Set the console javascript load URL. Default is
`https://cdn.terminusdb.com/js_libs/terminusdb_console/dev`.
* `TERMINUSDB_AUTOLOGIN_ENABLED`:
If `true` then attempt to login automatically with default
password. Default is `true`.
* `TERMINUSDB_SERVER_PACK_DIR`:
Location of the prolog pack directory if loading third party
modules.
* `TERMINUSDB_SERVER_TMP_PATH`:
Path to use for temporary files.
* `TERMINUSDB_IGNORE_REF_AND_REPO_SCHEMA`:
Assume that ref and repo operations are inherently correct.
## EXIT STATUS
* 0:
Successfully program execution. Associated with `api:success`.
* 1:
A generic failure of the API to carry out the operation. Associated
with `api:failure`.
* 2:
The resource which was being requested was not found. Associated
with `api:not_found`.
* 13:
The user attempted to carry out an operation without appropriately
authorizing or without permission. Associated with
`api:unauthorized` or `api:forbidden`.
* 13:
Unauthorized access attempted. Associated with `api:unauthorized`.
* 126:
An api command was attempted which is not possible. Associated with
`api:method_not_allowed`.
* 131:
Internal server error. Associated with `api:server_error`.
## EXAMPLES
* `terminusdb db create admin/foo`:
Create a database in the organization `admin` with the identifier `foo`.
* `terminusdb db create admin/foo --label="Foo"`:
Create a database in the organization `admin` with the identifier
`foo` and name `Foo`.
## COPYRIGHT
Copyright 2021 TerminusDB
Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You may
obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.
## AUTHORS
Gavin Mendel-Gleason <gavin@terminusdb.com>
Matthijs van Otterdijk <matthijs@terminusdb.com>
Robin de Rooij <robin@terminusdb.com>
Anne Ogborn <anne@swi-prolog.org>
Dmytri Kleiner <dk@terminusdb.com>
[Paulo Moura](https://github.com/pmoura)