Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.23 KB

rspace-client_eln_addForm.md

File metadata and controls

51 lines (32 loc) · 1.23 KB

rspace-client eln addForm

Adds a new Form

Synopsis

Create 1 or forms from .yaml or .json definition files. The syntax for the form definitions should be that described in the forms/ POST API documentation, or its YAML equivalent.

Multiple files can be specified as arguments.

--publish flag, if set, will publish the Forms so they can be used immediately to create documents. If not set, forms remain in the 'NEW' state.

rspace-client eln addForm [flags]

Examples

 
// Create 2 forms; one specified in yaml format and one specified in json format.
// Publish both forms so they are available to use to create documents.
rspace eln addForm myFormDef.yaml mySecondForm.json --publish

Options

  -h, --help      help for addForm
      --publish   Publishes the forms

Options inherited from parent commands

      --config string         config file (default is $HOME/.rspace)
  -o, --outFile string        Output file for program output
  -f, --outputFormat string   Output format: one of 'json','table', 'csv' or 'quiet'  (default "table")

SEE ALSO

Auto generated by spf13/cobra on 19-Aug-2020