fairly CLI commands

Repository commands

fairly create [path] # this should write or save to fairly.json fairly repository list fairly repository add --id <id> --name <name> --api-url <url> --token <token> fairly repository update <id> --token <token> fairly repository remove <id> # Should we have something like test connection? ping # show stored parameters of repository fairly repository show <id>

Dataset commands

# Create a local dataset under path with default template fairly dataset create <path> # Create a local dataset under path with the specified template # <template> = 'zeondo, 4tu, default' fairly dataset create <path> --template <template> # Show information about the specified local dataset # show some metadata + handy info about the dataset fairly dataset show <path> fairly dataset upload <path> <repository> # Ex. fairly dataset upload ~/my-dataset zenodo # Upload dataset by using a custom token (can be useful for e.g. data stewards) fairly dataset upload <path> <repository> --token <token> fairly upload <path> <repository> --token <token> # If the dataset was not uploaded before: create remote entry (get id), set metadata, upload all files, upload local manifest to add id # If the dataset was uploaded (id exists in manifest): update remote metadata, upload added and modified files, delete removed files metadata: 4tu_id: <id> files: # Download a dataset by using its URL address or DOI # fairly automatically recognize them and creates corresponding client fairly dataset download <url|doi> fairly download <url|doi> # Ex. fairly download https://zenodo.org/record/6026285 fairly dataset download <url|doi> --token <token> fairly dataset download <repository> <id> fairly dataset download --repository zenodo --id 6026285 # TODO: Assess if this is a good idea or not???? # Update 'title' metadata of the local dataset fairly dataset update <path> --title <title>
fairly delete (url|doi)

Examples:

fairly delete https://zenodo.org/record/6026285
fairly delete 10.5281/zenodo.6026285

fairly delete (repository) (id)

Parameters:

  • repository
  • id
  • version

Examples:

  • fairly delete zenodo 6026285

fairly clone (url|doi)
fairly clone (repository) (id) (version)

Select a repo