magda-cli
- magda-cli [<flags>] <command> [<args> ...]
Managing records & schemas in Magda.
-
-h, --help
Show context-sensitive help (also try --help-long and --help-man). -
-H, --host=HOST
DNS name/IP of Magda host [MAGDA_HOST] -
--tenantID=TENANTID
Tenant ID [TENANT_ID] -
--authID=AUTHID
Authorization Key ID [AUTH_ID] -
--authKey=AUTHKEY
Authorization Key [AUTH_KEY] -
--useTLS
Use https -
--skipGateway
Skip gateway server and call registry server directly [SKIP_GATEWAY]]
Show help.
List some records
-
-a, --aspects=ASPECTS
The aspects for which to retrieve data -
-q, --query=QUERY
Record Name -
-o, --offset=OFFSET
Index of first record retrieved -
-l, --limit=LIMIT
The maximumm number of records to retrieve -
-t, --pageToken=PAGETOKEN
Token that identifies the start of a page of results
Read the content of a record
-
-i, --id=ID
Record ID -
--add-aspects=ADD-ASPECTS
Add aspects to record listing (comma separated) -
-a, --aspect=ASPECT
Show only this aspect of the record as result
Creates a new record
-
-i, --id=ID
Record ID (defaults to UUID) -
-n, --name=NAME
Record Name -
-a, --aspectName=ASPECTNAME
Name of aspect to add (requires --aspectFile) -
-f, --aspectFile=ASPECTFILE
File containing aspect data
Update an existing record
-
-i, --id=ID
Record ID (defaults to UUID) -
-n, --name=NAME
Record Name -
-a, --aspectName=ASPECTNAME
Name of aspect to add (requires --aspectFile) -
-f, --aspectFile=ASPECTFILE
File containing aspect data
Delete a record or one of it's aspects
-
-i, --id=ID
Record ID -
-a, --aspect=ASPECT
Only delete this aspect
Get a list of all events for a record
-
-i, --id=ID
Record ID -
-e, --event-id=EVENT-ID
Only show event wiht event-id -
-o, --offset=OFFSET
Index of first record retrieved -
-l, --limit=LIMIT
The maximumm number of records to retrieve -
-t, --pageToken=PAGETOKEN
Token that identifies the start of a page of results
List all aspect schemas
Creates a new schema
-
-n, --name=NAME
Descriptive name -
-i, --id=ID
Schema ID -
-f, --schemaFile=SCHEMAFILE
File containing schema/aspect decalration
Read the content of a record
- -i, --id=ID
Record ID
Update existing schema
-
-n, --name=NAME
Descriptive name -
-i, --id=ID
Schema ID -
-f, --schemaFile=SCHEMAFILE
File containing schema/aspect decalration