onyx¶
API for Pathogen Metadata.
For documentation, see: https://climb-tre.github.io/onyx-client/
Usage:
Options:
-d, --domain TEXT: Domain name for connecting to Onyx. [env var: ONYX_DOMAIN]-t, --token TEXT: Token for authenticating with Onyx. [env var: ONYX_TOKEN]-u, --username TEXT: Username for authenticating with Onyx. [env var: ONYX_USERNAME]-p, --password TEXT: Password for authenticating with Onyx. [env var: ONYX_PASSWORD]-v, --version: Show the client version number and exit.--help: Show this message and exit.
Commands:
projects: View available projects.types: View available field types.lookups: View available lookups.fields: View the field specification for a project.choices: View options for a choice field in a project.get: Get a record from a project.filter: Filter multiple records from a project.history: View the history of a record in a project.analyses: View analyses of a record in a project.identify: Get the anonymised identifier for a value...create: Create a record in a project.update: Update a record in a project.delete: Delete a record in a project.analysis-fields: View the analysis field specification for...analysis-choices: View options for an analysis choice field.get-analysis: Get an analysis from a project.filter-analysis: Filter multiple analyses from a project.analysis-history: View the history of an analysis in a project.analysis-records: View records involved in an analysis in a...create-analysis: Create an analysis in a project.update-analysis: Update an analysis in a project.delete-analysis: Delete an analysis in a project.profile: View profile information.activity: View latest profile activity.siteusers: View users from the same site.auth: Authentication commands.admin: Admin commands.
onyx projects¶
View available projects.
Usage:
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx types¶
View available field types.
Usage:
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx lookups¶
View available lookups.
Usage:
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx fields¶
View the field specification for a project.
Usage:
Arguments:
PROJECT: [required]
Options:
-F, --format [table|json|csv|tsv]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx choices¶
View options for a choice field in a project.
Usage:
Arguments:
PROJECT: [required]FIELD: [required]
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx get¶
Get a record from a project.
Usage:
Arguments:
PROJECT: [required][CLIMB_ID]
Options:
-f, --field TEXT: Filter the data by providing conditions that the fields must match. Uses aname=valuesyntax.-i, --include TEXT: Specify which fields to include in the output.-e, --exclude TEXT: Specify which fields to exclude from the output.--help: Show this message and exit.
onyx filter¶
Filter multiple records from a project.
Usage:
Arguments:
PROJECT: [required]
Options:
-f, --field TEXT: Filter the data by providing conditions that the fields must match. Uses aname=valuesyntax.-i, --include TEXT: Specify which fields to include in the output.-e, --exclude TEXT: Specify which fields to exclude from the output.-s, --summarise TEXT: For a given field (or group of fields), return the frequency of each unique value (or unique group of values).-F, --format [json|csv|tsv]: Set the file format of the returned data. [default: json]--help: Show this message and exit.
onyx history¶
View the history of a record in a project.
Usage:
Arguments:
PROJECT: [required]CLIMB_ID: [required]
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx analyses¶
View analyses of a record in a project.
Usage:
Arguments:
PROJECT: [required]CLIMB_ID: [required]
Options:
-F, --format [json|csv|tsv]: Set the file format of the returned data. [default: json]--help: Show this message and exit.
onyx identify¶
Get the anonymised identifier for a value on a field.
Usage:
Arguments:
PROJECT: [required]FIELD: [required]VALUE: [required]
Options:
-s, --site TEXT: Site code for the value. If not provided, defaults to the user's site.-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx create¶
Create a record in a project.
Usage:
Arguments:
PROJECT: [required]
Options:
-f, --field TEXT: Field and value to be created. Uses aname=valuesyntax.-t, --test: Run the command as a test. [default: (False)]--help: Show this message and exit.
onyx update¶
Update a record in a project.
Usage:
Arguments:
PROJECT: [required]CLIMB_ID: [required]
Options:
-f, --field TEXT: Field and value to be updated. Uses aname=valuesyntax.-t, --test: Run the command as a test. [default: (False)]--help: Show this message and exit.
onyx delete¶
Delete a record in a project.
Usage:
Arguments:
PROJECT: [required]CLIMB_ID: [required]
Options:
--force: Run the command without confirmation. [default: (False)]--help: Show this message and exit.
onyx analysis-fields¶
View the analysis field specification for a project.
Usage:
Arguments:
PROJECT: [required]
Options:
-F, --format [table|json|csv|tsv]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx analysis-choices¶
View options for an analysis choice field.
Usage:
Arguments:
PROJECT: [required]FIELD: [required]
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx get-analysis¶
Get an analysis from a project.
Usage:
Arguments:
PROJECT: [required][ANALYSIS_ID]
Options:
-f, --field TEXT: Filter the data by providing conditions that the fields must match. Uses aname=valuesyntax.-i, --include TEXT: Specify which fields to include in the output.-e, --exclude TEXT: Specify which fields to exclude from the output.--help: Show this message and exit.
onyx filter-analysis¶
Filter multiple analyses from a project.
Usage:
Arguments:
PROJECT: [required]
Options:
-f, --field TEXT: Filter the data by providing conditions that the fields must match. Uses aname=valuesyntax.-i, --include TEXT: Specify which fields to include in the output.-e, --exclude TEXT: Specify which fields to exclude from the output.-s, --summarise TEXT: For a given field (or group of fields), return the frequency of each unique value (or unique group of values).-F, --format [json|csv|tsv]: Set the file format of the returned data. [default: json]--help: Show this message and exit.
onyx analysis-history¶
View the history of an analysis in a project.
Usage:
Arguments:
PROJECT: [required]ANALYSIS_ID: [required]
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx analysis-records¶
View records involved in an analysis in a project.
Usage:
Arguments:
PROJECT: [required]ANALYSIS_ID: [required]
Options:
-F, --format [json|csv|tsv]: Set the file format of the returned data. [default: json]--help: Show this message and exit.
onyx create-analysis¶
Create an analysis in a project.
Usage:
Arguments:
PROJECT: [required]
Options:
-f, --field TEXT: Field and value to be created. Uses aname=valuesyntax.-t, --test: Run the command as a test. [default: (False)]--help: Show this message and exit.
onyx update-analysis¶
Update an analysis in a project.
Usage:
Arguments:
PROJECT: [required]ANALYSIS_ID: [required]
Options:
-f, --field TEXT: Field and value to be updated. Uses aname=valuesyntax.-t, --test: Run the command as a test. [default: (False)]--help: Show this message and exit.
onyx delete-analysis¶
Delete an analysis in a project.
Usage:
Arguments:
PROJECT: [required]ANALYSIS_ID: [required]
Options:
--force: Run the command without confirmation. [default: (False)]--help: Show this message and exit.
onyx profile¶
View profile information.
Usage:
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx activity¶
View latest profile activity.
Usage:
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx siteusers¶
View users from the same site.
Usage:
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx auth¶
Authentication commands.
Usage:
Options:
--help: Show this message and exit.
Commands:
register: Create a new user.login: Log in.logout: Log out.logoutall: Log out across all clients.
onyx auth register¶
Create a new user.
Usage:
Options:
--help: Show this message and exit.
onyx auth login¶
Log in.
Usage:
Options:
--help: Show this message and exit.
onyx auth logout¶
Log out.
Usage:
Options:
--help: Show this message and exit.
onyx auth logoutall¶
Log out across all clients.
Usage:
Options:
--help: Show this message and exit.
onyx admin¶
Admin commands.
Usage:
Options:
--help: Show this message and exit.
Commands:
waiting: View users waiting for approval.approve: Approve a user.allusers: View users across all sites.
onyx admin waiting¶
View users waiting for approval.
Usage:
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.
onyx admin approve¶
Approve a user.
Usage:
Arguments:
USERNAME: Name of the user being approved. [required]
Options:
--help: Show this message and exit.
onyx admin allusers¶
View users across all sites.
Usage:
Options:
-F, --format [table|json]: Set the file format of the returned data. [default: table]--help: Show this message and exit.