Search Modaic documentation

Find a Modaic guide or API reference

modaic resources

upload

Upload a file and wait for validation.

modaic resources upload train.jsonl --kind dataset --name support-labels
Flag / argumentWhat it does
PATHRequired local file path.
--kindRequired: dataset or artifact.
--nameUnique resource name. Generated when omitted.
--workspaceWorkspace slug. Omit to use the authenticated account workspace.
--timeoutValidation wait in seconds.
-h, --helpShow usage and options.

Check the returned status before using the resource. For other files, use --kind artifact. See dataset format. Dataset uploads are limited to 256 MiB, matching the training limit. Artifact uploads are limited to 8 GiB.

list

List uploaded resources.

modaic resources list --kind dataset
Flag / argumentWhat it does
--workspaceWorkspace slug. Omit to use the authenticated account workspace.
--commit-shaRead a specific resource revision.
--kindFilter by dataset or artifact.
--cursorNext-page cursor. Pass the previous response commit with --commit-sha.
-h, --helpShow usage and options.

get

Read resource metadata.

modaic resources get support-labels
Flag / argumentWhat it does
NAMERequired uploaded resource name.
--workspaceWorkspace slug. Omit to use the authenticated account workspace.
--commit-shaRead a specific resource revision.
-h, --helpShow usage and options.

download

Save resource bytes to a local file.

modaic resources download support-labels --output train-copy.jsonl
Flag / argumentWhat it does
NAMERequired uploaded resource name.
--workspaceWorkspace slug. Omit to use the authenticated account workspace.
--commit-shaRead a specific resource revision.
--outputOutput path. Defaults to the resource name.
-h, --helpShow usage and options.
Was this page helpful?