78 lines
2.1 KiB
Markdown
78 lines
2.1 KiB
Markdown
# orcli 0.4.0
|
|
|
|
## command help screens
|
|
|
|
- [completions](completions.md)
|
|
- [delete](delete.md)
|
|
- [export csv](export_csv.md)
|
|
- [export jsonl](export_jsonl.md)
|
|
- [export template](export_template.md)
|
|
- [export tsv](export_tsv.md)
|
|
- [import csv](import_csv.md)
|
|
- [import json](import_json.md)
|
|
- [import jsonl](import_jsonl.md)
|
|
- [import tsv](import_tsv.md)
|
|
- [info](info.md)
|
|
- [list](list.md)
|
|
- [run](run.md)
|
|
- [search](search.md)
|
|
- [sort columns](sort_columns.md)
|
|
- [test](test.md)
|
|
- [transform](transform.md)
|
|
|
|
## main help screen
|
|
|
|
```
|
|
orcli - OpenRefine command-line interface written in Bash
|
|
|
|
Usage:
|
|
orcli COMMAND
|
|
orcli [COMMAND] --help | -h
|
|
orcli --version | -v
|
|
|
|
Commands:
|
|
completions Generate bash completions
|
|
delete delete OpenRefine project
|
|
import commands to create OpenRefine projects from files or URLs
|
|
list list projects on OpenRefine server
|
|
info show OpenRefine project's metadata
|
|
search apply regex to each column and print matches in flattened tsv format
|
|
sort commands to sort OpenRefine projects
|
|
test run functional tests on tmp OpenRefine workspace
|
|
transform apply undo/redo JSON file(s) to an OpenRefine project
|
|
export commands to export data from OpenRefine projects to files
|
|
run run tmp OpenRefine workspace and execute shell script(s)
|
|
|
|
Options:
|
|
--help, -h
|
|
Show this help
|
|
|
|
--version, -v
|
|
Show version number
|
|
|
|
Environment Variables:
|
|
OPENREFINE_URL
|
|
URL to OpenRefine server
|
|
Default: http://localhost:3333
|
|
|
|
Examples:
|
|
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
|
orcli list
|
|
orcli info "duplicates"
|
|
orcli transform "duplicates" "https://git.io/fj5ju"
|
|
orcli search "duplicates" "^Ben"
|
|
orcli sort columns "duplicates"
|
|
orcli export tsv "duplicates"
|
|
orcli export tsv "duplicates" --output "duplicates.tsv"
|
|
orcli delete "duplicates"
|
|
orcli run --interactive
|
|
orcli run << EOF
|
|
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
|
orcli transform "duplicates" "https://git.io/fj5ju"
|
|
orcli export tsv "duplicates"
|
|
EOF
|
|
|
|
https://github.com/opencultureconsulting/orcli
|
|
|
|
```
|