Skip to content

dandi upload --dandiset-path? #892

@bendichter

Description

@bendichter

dandi upload --help mentions a --dandiset-path arg, but I don't see one in the options. What is the proper way to set this without being in that directory?

$ dandi upload --help
Usage: dandi upload [OPTIONS] [PATHS]...

  Upload Dandiset files to DANDI Archive.

  The target Dandiset to upload to must already be registered in the archive,
  and a `dandiset.yaml` file must exist in the local `--dandiset-path`.

  Local Dandiset should pass validation.  For that, the assets should first be
  organized using the `dandi organize` command.

  By default all .nwb files in the Dandiset (excluding directories starting
  with a period) will be considered for the upload.  You can point to specific
  files you would like to validate and have uploaded.

Options:
  -e, --existing [error|skip|force|overwrite|refresh]
                                  What to do if a file found existing on the
                                  server. 'skip' would skipthe file, 'force' -
                                  force reupload, 'overwrite' - force upload
                                  if either size or modification time differs;
                                  'refresh' - upload only if local
                                  modification time is ahead of the remote.
                                  [default: refresh]
  -J, --jobs N[:M]                Number of files to upload in parallel and,
                                  optionally, number of upload threads per
                                  file
  --sync                          Delete assets on the server that do not
                                  exist locally
  --validation [require|skip|ignore]
                                  Data must pass validation before the upload.
                                  Use of this option is highly discouraged.
                                  [default: require]
  -i, --dandi-instance [dandi|dandi-api-local-docker-tests|dandi-devel|dandi-staging]
                                  DANDI instance to use  [env var:
                                  DANDI_INSTANCE;default: dandi]
  --help                          Show this message and exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions