CLI Reference¶
This page provides documentation for our command line tools.
app¶
Usage:
artifacts¶
Manage artifacts
Usage:
download¶
Download an artifact to cache
Usage:
Options:
ARTIFACT_NAME [required]
-i, --index TEXT Artifact index path (default set via env var
DEEPSEARCH_ARTIFACT_INDEX, else current
working dir).
-c, --cache TEXT Artifact cache path (default set via env var
DEEPSEARCH_ARTIFACT_CACHE, else platform-
specific).
-s, --hit-strategy [raise|pass|overwrite]
How to handle case of artifact being already
in cache. [default: overwrite]
--unpack / --no-unpack [default: unpack]
--progress-bar / --no-progress-bar
[default: progress-bar]
download-all¶
Download all artifacts to cache
Usage:
Options:
-i, --index TEXT Artifact index path (default set via env var
DEEPSEARCH_ARTIFACT_INDEX, else current
working dir).
-c, --cache TEXT Artifact cache path (default set via env var
DEEPSEARCH_ARTIFACT_CACHE, else platform-
specific).
-s, --hit-strategy [raise|pass|overwrite]
How to handle case of artifact being already
in cache. [default: overwrite]
--unpack / --no-unpack [default: unpack]
--progress-bar / --no-progress-bar
[default: progress-bar]
list-cache¶
List artifacts in cache
Usage:
Options:
-c, --cache TEXT Artifact cache path (default set via env var
DEEPSEARCH_ARTIFACT_CACHE, else platform-specific).
list-index¶
List artifacts in index
Usage:
Options:
-i, --index TEXT Artifact index path (default set via env var
DEEPSEARCH_ARTIFACT_INDEX, else current working dir).
locate-cached-artifact¶
Show path of a cached artifact
Usage:
Options:
ARTIFACT_NAME [required]
-c, --cache TEXT Artifact cache path (default set via env var
DEEPSEARCH_ARTIFACT_CACHE, else platform-specific).
locate-default-cache¶
Show cache path
Usage:
cps¶
Interact with DeepSearch CPS component
Usage:
data-indices¶
Manage CPS data indices
Usage:
add-attachment¶
Add attachment to a index item
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-x, --index-key TEXT index_key of data index [required]
-d, --index_item_id TEXT Index item ID [required]
-i, --attachment-file PATH Provide absolute path to local file. [required]
-k, --attachment_key TEXT Attachment key to put in index item [default:
usr_attachments]
create¶
Create data index in project
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-n, --name TEXT Name of data index [required]
-d, -desc TEXT Describe your data index
--type [Document|DB Record|Generic|Experiment]
Type of Data Index [default: Document]
delete¶
Delete data index in a project
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-x, --index-key TEXT index_key of data index [required]
list¶
List data indices in project
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-o, --output [table|json] Output format [default: table]
upload¶
Upload files/urls to index
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-u, --url TEXT Provide single url or absolute path to file
containing multiple urls separated by empty
lines.
-i, --input-file PATH Provide absolute path to local file or
directory containing pdf documents, zip files,
or both.
-x, --index-key TEXT index_key of data index [required]
-c, --coordinates-file PATH Provide absolute path to local json file
containing coordinates of COS.
--conv-settings TEXT Provide conversion settings to be used on local
file upload
--target-settings TEXT Provide target conversion settings to be used
on local file upload
elastic-data¶
Manage Elastic data collections
Usage:
list¶
List Elastic Data Collections
Usage:
Options:
kgs¶
Manage CPS KGs
Usage:
download¶
Download KG
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-k, --kg-key TEXT Knowledge Graph [required]
-o, --output [table|json] Output format [default: table]
list¶
List KGs
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-o, --output [table|json] Output format [default: table]
list-flavours¶
List KG flavours for a project
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-o, --output [table|json] Output format [default: table]
save-snapshot¶
Save a snapshot from an assembled Data Set
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-k, --kg-key TEXT Knowledge Graph [required]
-w, --wait Wait for the operation to finish
--flavour TEXT Name of the Flavour/Capacity of the snapshot. Use
'list-flavours' to get a list [required]
--load-after-assembled [default: True]
--snapshot-name TEXT
projects¶
Manage CPS projects
Usage:
assign¶
Assign a user to a project
Usage:
Options:
create¶
Create a project
Usage:
Options:
list¶
List projects
Usage:
Options:
remove¶
Remove a project
Usage:
Options:
documents¶
Interact with DeepSearch Document Conversion component
Usage:
convert¶
Convert pdf documents using Deep Search Technology
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-u, --url TEXT Provide single url or absolute path to file
containing multiple urls separated by empty
lines.
-i, --input-file PATH Provide absolute path to local file or
directory containing pdf documents, zip files,
or both.
-pbar, --progress-bar Show progress bar [default: True]
-r, --report Generate report after document conversion
--export-md / --no-export-md [default: no-export-md]
get-report¶
Generate report of document conversion
Usage:
Options:
-p, --proj-key TEXT Provide project key [required]
-t, --task-ids PATH Provide path to file containing task ids generated
during document conversion.
login¶
Authentication is now done via profiles; to set up one check deepsearch profile config --help
Usage:
Options:
--host TEXT
--email TEXT
--api-key TEXT
--verify-ssl / --no-verify-ssl [default: verify-ssl]
--output TEXT
profile¶
Manage profile configuration
Usage:
config¶
Add or update a profile.
Usage:
Options:
--host TEXT [required]
--username TEXT [required]
--api-key TEXT [required]
--verify-ssl / --no-verify-ssl [default: verify-ssl]
--profile-name TEXT If not set, the active profile will be
updated or, if no profile available, a new
profile with a predetermined name will be
created.
--activate-profile / --no-activate-profile
[default: activate-profile]
list¶
List all profiles.
Usage:
remove¶
Remove a profile.
Usage:
Options:
show¶
Display a profile.
Usage:
Options:
use¶
Activate a profile.
Usage:
Options:
query¶
Interact with DeepSearch Query component
Usage:
data-query¶
Launch a DeepSearch data query
Usage:
Options:
SEARCH_QUERY [required]
-s, --source TEXT
-p, --proj-key TEXT Provide project key [required]
-e, --instance TEXT
-x, --index-key TEXT index_key of data index [required]
-o, --output [table|json] Output format [default: table]
kg-fts¶
Launch a KG Full Text Search
Usage:
Options:
SEARCH_QUERY [required]
-p, --proj-key TEXT Provide project key [required]
-k, --kg-key TEXT [required]
-c, --collection TEXT [required]
-o, --output [table|json] Output format [default: table]
query-flow¶
Launch a raw flow query
Usage:
Options:
wf¶
Launch a CPS KG Worflow query
Usage:
Options:
-i, --input-file PATH JSON Workflow file, as generated by the CPS KG UI
[required]
-p, --proj-key TEXT Provide project key [required]
-k, --kg-key TEXT [required]
-o, --output [table|json] Output format [default: table]
version¶
Print the client and server version
Usage: