HumanSignal / HumanSignal/label-studio

label-studio export returns: unrecognized arguments: --path

Open
#5,454 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
label-studio export returns: unrecognized arguments: --path

**To Reproduce**
Steps to reproduce the behavior:
1. in terminal, run
label-studio export 28 JSON --path="./test.json"
2. command retuns an error
=> Database and media directory: /home//.local/share/label-studio
=> Static URL is set to: /static/
usage: label-studio [-h] [--version] [-b] [-db DATABASE] [--data-dir DATA_DIR] [-d] [-c CONFIG_PATH] [-l LABEL_CONFIG] [--skip-long-migrations] [--ml-backends ML_BACKENDS [ML_BACKENDS ...]]
[--sampling {sequential,uniform,prediction-score-min}] [--log-level {DEBUG,INFO,WARNING,ERROR}] [--internal-host INTERNAL_HOST] [-p PORT] [--host HOST] [--cert CERT_FILE]
[--key KEY_FILE] [--initial-project-description PROJECT_DESC] [--password PASSWORD] [--username USERNAME] [--user-token USER_TOKEN] [--agree-fix-sqlite]
{version,user,init,start,reset_password,shell,calculate_stats_all_orgs,export,annotations_fill_updated_by} ...
label-studio: error: unrecognized arguments: --path=./test.json

**Expected behavior**
Annotations from the project with id 28 exported in JSON format to the specified path, as described here: https://labelstud.io/guide/export.html

**Environment (please complete the following information):**
- OS: Ubuntu 20.04.6 LTS
- Label Studio Version 1.11.0

**Additional context**
I have many labeled projects and I'd like so export them in multiple formats, so doing that manually in the UI would take too much time. I've written a bash script to loop over projects and formats and generate descriptive filenames, but the export command doesn't work
Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.