Command-line interface
A command-line tool (gracedb) is provided which reproduces some of the functionality of the Python module.
This tool is most useful for small-scale manual work and it is not recommended to be used in a programmatic fashion.
This section will provide some information about what functionality is available, but detailed information about the available commands and their arguments is provided in the internal documentation. This documentation can be accessed by:
gracedb --helpgracedb <command> --helpgracedb <command> <subcommand> --help
Credentials
The command-line tool will look up credentials in some expected locations by default, just as the client class ligo.gracedb.rest.GraceDb does.
You can also provide credentials to the command-line interface by using the --creds argument or the --username and --password arguments, or by setting environment variables as detailed in the reference for ligo.gracedb.rest.GraceDb.
Events
Create an event:
gracedb create eventSearch for events:
gracedb search eventsRetrieve an individual event:
gracedb get eventUpdate an event:
gracedb update event
Superevents
Create a superevent:
gracedb create supereventSearch for superevents:
gracedb search supereventsRetrieve an individual superevent:
gracedb get supereventUpdate a superevent:
gracedb update supereventConfirm a superevent as GW:
gracedb confirm_as_gwExpose a superevent to the public:
gracedb exposeMake a superevent internal-only:
gracedb hideAdd an event to a superevent:
gracedb add eventRemove an event from a superevent:
gracedb remove eventGet allowed superevent categories:
gracedb info superevent_categories
Annotations
Log entries
Create a log entry (with optional file upload):
gracedb create logList all log entries for an event or superevent:
gracedb list logsGet a specific log entry:
gracedb get log
Files
Upload a file:
gracedb create logGet a list of files associated with an event or superevent:
gracedb list filesDownload a file:
gracedb get file
VOEvents
Create a VOEvent:
gracedb create voeventList VOEvents for an event or superevent:
gracedb list voeventsGet a specific VOEvent:
gracedb get voeventGet allowed VOEvent types:
gracedb info voevent_types
EM observations
Upload EM observation data:
gracedb create emobservationList all EM observations for an event or superevent:
gracedb list emobservationsGet a specific EM observation:
gracedb get emobservationGet the names EM groups for which data can be uploaded:
gracedb info emgroups
Signoffs
Create a superevent signoff:
gracedb create signoffUpdate a superevent signoff:
gracedb update signoffDelete a superevent signoff:
gracedb delete signoffList all signoffs for a superevent:
gracedb list signoffsGet a specific signoff:
gracedb get signoffGet a list of allowed signoff types:
gracedb info signoff_typesGet a list of allowed signoff statuses:
gracedb info signoff_statuses
Labels
List which labels are available on the server:
gracedb info labelsAdd a label to an event or superevent:
gracedb add labelRemove a label from an event or superevent:
gracedb remove labelGet a list of labels associated with an event or superevent:
gracedb list labelsGet a specific label instance:
gracedb get label
Other
Check your connection to the server:
gracedb pingShow the credentials that the client is using:
gracedb credentials clientShow the user account the server has connected your credentials with:
gracedb credentials serverGet allowed analysis groups:
gracedb info groupsGet allowed analysis pipelines:
gracedb info pipelinesGet allowed search types:
gracedb info searchesGet allowed instruments:
gracedb info instrumentsGet code version being run by the server:
gracedb info server_version