Usage

ubconnect features explorative help pages. Add -h/--help to any command to see the available options. Many commands directly show the help page when executed without any options and arguments.

The following sections show all available (sub-)commands.

ubconnect

ubconnect Usage: ubconnect [OPTIONS] COMMAND [ARGS]... ubConnect CLI for integrating Sphinx-Needs with external systems. ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --versionShow the version and exit --install-completionInstall completion for the current shell. --show-completionShow completion for the current shell, to copy it   or customize the installation.                      --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ────────────────────────────────────────────────────────────────────────╮ reqif Data exchange with .reqif and .reqifz files                               jama  Data exchange with Jama Connect                                           csv   Data exchange with CSV files                                              ╰───────────────────────────────────────────────────────────────────────────────────╯

reqif

reqif Usage: ubconnect reqif [OPTIONS] COMMAND [ARGS]... Data exchange with .reqif and .reqifz files ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ────────────────────────────────────────────────────────────────────────╮ from-reqif Convert reqif(z) to needs.json or RST                                to-reqif   Convert needs.json to .reqif(z)                                      ╰───────────────────────────────────────────────────────────────────────────────────╯

from-reqif

from-reqif Usage: ubconnect reqif from-reqif [OPTIONS] [REQIF_PATH] Convert reqif(z) to needs.json or RST ╭─ Arguments ───────────────────────────────────────────────────────────────────────╮ reqif_path[REQIF_PATH]The path to the reqif(z) input file [default: None]                     ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --config-cFILEPath to the TOML configuration file [default: None]                     --reqifz-zIndicates that the input file is a .reqifz         (zipped) file                                      --outdir-oPATHThe output directory for generated files. [default: None]                           --id-prefix-pTEXTPrefix for need IDs. --back-links-bEnable backlink generation. --output-format-fTEXTOutput format: 'json' (default) or 'rst'. [default: None]                           --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ License ─────────────────────────────────────────────────────────────────────────╮ --license-keyTEXT    Use a specific license key.      [env var: UBCONNECT_LICENSE_KEY] --license-userTEXT    Use a specific license user.      [env var: UBCONNECT_LICENSE_USER] --license-stageprod|devUse a specific license stage       [env var: UBCONNECT_LICENSE_STAGE] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging ─────────────────────────────────────────────────────────────────────────╮ --verbose-vShow debug information --quiet-qOnly show errors and warnings ╰───────────────────────────────────────────────────────────────────────────────────╯

to-reqif

to-reqif Usage: ubconnect reqif to-reqif [OPTIONS] [NEEDSJSON_PATH] Convert needs.json to .reqif(z) ╭─ Arguments ───────────────────────────────────────────────────────────────────────╮ needsjson_path[NEEDSJSON_PATH]The path to the needs.json input file [default: None]                       ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --config-cFILE              Path to the TOML configuration   file                             [default: None]                  --outpath-oPATH              The path to the .reqif(z) output file.                            [default: None]                  --name-nTEXT              The name of the                  ReqIfSpecification               --reqifz-zWrite the output as .reqifz file --group-types-gtGroup need items to multiple     specifications/ObjectTypes by    need types. If not enabled, all  need items are collected into    one specification/ObjectType.    --prefix-pTEXT              The prefix for                   ReqIfSpecification.              --alm-tool[doors|codebeamer]Target ALM tool. Affects field   mappings (e.g., title field).    --section-typeTEXT              The long name for                ReqIFSpecObjectType used for     sections (headings)              --import-dateAdd an 'import_date' Date        attribute to every spec-object   with the current datetime.       --html-dirDIRECTORY         Path to the Sphinx HTML build    output directory. Enables HTML   content extraction.              [default: None]                  --target-image-dirTEXT              Target directory name for images inside the ReqIFz archive        (requires --html-dir and         --reqifz).                       [default: None]                  --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ License ─────────────────────────────────────────────────────────────────────────╮ --license-keyTEXT    Use a specific license key.      [env var: UBCONNECT_LICENSE_KEY] --license-userTEXT    Use a specific license user.      [env var: UBCONNECT_LICENSE_USER] --license-stageprod|devUse a specific license stage       [env var: UBCONNECT_LICENSE_STAGE] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging ─────────────────────────────────────────────────────────────────────────╮ --verbose-vShow debug information --quiet-qOnly show errors and warnings ╰───────────────────────────────────────────────────────────────────────────────────╯

jama

jama Usage: ubconnect jama [OPTIONS] COMMAND [ARGS]... Data exchange with Jama Connect ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ────────────────────────────────────────────────────────────────────────╮ from-jama  Import requirements from Jama Connect                                to-jama    Export requirements to Jama Connect                                  list-types List available item types from Jama instance                         check      Check if connection to Jama is possible with provided credentials    ╰───────────────────────────────────────────────────────────────────────────────────╯

from-jama

from-jama Usage: ubconnect jama from-jama [OPTIONS] Import requirements from Jama Connect ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --config-cFILEPath to the TOML configuration file[default: None] --urlTEXTJama Connect instance URL (env: JAMA_URL) [env var: JAMA_URL]                       [default: None]                           --usernameTEXTJama Connect username or client ID (env:              JAMA_USERNAME)                                        [env var: JAMA_USERNAME]                              [default: None]                                       --passwordTEXTJama Connect password or client secret (env:          JAMA_PASSWORD)                                        [env var: JAMA_PASSWORD]                              [default: None]                                       --project-idTEXTJama project ID (can be numeric string ID or a        project key like 'FVC'). (env: JAMA_PROJECT_ID)       [env var: JAMA_PROJECT_ID]                            [default: None]                                       --outdir-oPATHOutput directory for generated files[default: None] --id-prefix-pTEXTPrefix for need IDs[default: None] --oauthUse OAuth authentication (required for API            credentials)                                          --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ License ─────────────────────────────────────────────────────────────────────────╮ --license-keyTEXT    Use a specific license key.      [env var: UBCONNECT_LICENSE_KEY] --license-userTEXT    Use a specific license user.      [env var: UBCONNECT_LICENSE_USER] --license-stageprod|devUse a specific license stage       [env var: UBCONNECT_LICENSE_STAGE] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging ─────────────────────────────────────────────────────────────────────────╮ --verbose-vShow debug information --quiet-qOnly show errors and warnings ╰───────────────────────────────────────────────────────────────────────────────────╯

to-jama

to-jama Usage: ubconnect jama to-jama [OPTIONS] [NEEDSJSON_PATH] Export requirements to Jama Connect ╭─ Arguments ───────────────────────────────────────────────────────────────────────╮ needsjson_path[NEEDSJSON_PATH]Path to needs.json file[default: None] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --config-cFILEPath to the TOML configuration file[default: None] --urlTEXTJama Connect instance URL (env: JAMA_URL) [env var: JAMA_URL]                       [default: None]                           --usernameTEXTJama Connect username or client ID (env:              JAMA_USERNAME)                                        [env var: JAMA_USERNAME]                              [default: None]                                       --passwordTEXTJama Connect password or client secret (env:          JAMA_PASSWORD)                                        [env var: JAMA_PASSWORD]                              [default: None]                                       --project-idTEXTJama project ID (can be numeric string ID or a        project key like 'FVC'). (env: JAMA_PROJECT_ID)       [env var: JAMA_PROJECT_ID]                            [default: None]                                       --dry-runSimulate operations without making changes to Jama --oauthUse OAuth authentication (required for API            credentials)                                          --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ License ─────────────────────────────────────────────────────────────────────────╮ --license-keyTEXT    Use a specific license key.      [env var: UBCONNECT_LICENSE_KEY] --license-userTEXT    Use a specific license user.      [env var: UBCONNECT_LICENSE_USER] --license-stageprod|devUse a specific license stage       [env var: UBCONNECT_LICENSE_STAGE] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging ─────────────────────────────────────────────────────────────────────────╮ --verbose-vShow debug information --quiet-qOnly show errors and warnings ╰───────────────────────────────────────────────────────────────────────────────────╯

list-types

list-types Usage: ubconnect jama list-types [OPTIONS] List available item types from Jama instance ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --config-cFILEPath to the TOML configuration file[default: None] --urlTEXTJama Connect instance URL (env: JAMA_URL) [env var: JAMA_URL]                       [default: None]                           --usernameTEXTJama Connect username or client ID (env: JAMA_USERNAME) [env var: JAMA_USERNAME]                                [default: None]                                         --passwordTEXTJama Connect password or client secret (env:            JAMA_PASSWORD)                                          [env var: JAMA_PASSWORD]                                [default: None]                                         --oauthUse OAuth authentication (required for API credentials) --format-fTEXTOutput format: table, json, or csv[default: table] --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ License ─────────────────────────────────────────────────────────────────────────╮ --license-keyTEXT    Use a specific license key.      [env var: UBCONNECT_LICENSE_KEY] --license-userTEXT    Use a specific license user.      [env var: UBCONNECT_LICENSE_USER] --license-stageprod|devUse a specific license stage       [env var: UBCONNECT_LICENSE_STAGE] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging ─────────────────────────────────────────────────────────────────────────╮ --verbose-vShow debug information --quiet-qOnly show errors and warnings ╰───────────────────────────────────────────────────────────────────────────────────╯

check

check Usage: ubconnect jama check [OPTIONS] Check if connection to Jama is possible with provided credentials ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --config-cFILEPath to the TOML configuration file[default: None] --urlTEXTJama Connect instance URL (env: JAMA_URL) [env var: JAMA_URL]                       [default: None]                           --usernameTEXTJama Connect username or client ID (env: JAMA_USERNAME) [env var: JAMA_USERNAME]                                [default: None]                                         --passwordTEXTJama Connect password or client secret (env:            JAMA_PASSWORD)                                          [env var: JAMA_PASSWORD]                                [default: None]                                         --oauthUse OAuth authentication (required for API credentials) --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ License ─────────────────────────────────────────────────────────────────────────╮ --license-keyTEXT    Use a specific license key.      [env var: UBCONNECT_LICENSE_KEY] --license-userTEXT    Use a specific license user.      [env var: UBCONNECT_LICENSE_USER] --license-stageprod|devUse a specific license stage       [env var: UBCONNECT_LICENSE_STAGE] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging ─────────────────────────────────────────────────────────────────────────╮ --verbose-vShow debug information --quiet-qOnly show errors and warnings ╰───────────────────────────────────────────────────────────────────────────────────╯

csv

csv Usage: ubconnect csv [OPTIONS] COMMAND [ARGS]... Data exchange with CSV files ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ────────────────────────────────────────────────────────────────────────╮ from-csv Import .csv file to needs.json                                         to-csv   Export needs.json to CSV                                               ╰───────────────────────────────────────────────────────────────────────────────────╯

from-csv

from-csv Usage: ubconnect csv from-csv [OPTIONS] [CSV_PATH] Import .csv file to needs.json ╭─ Arguments ───────────────────────────────────────────────────────────────────────╮ csv_path[CSV_PATH]Path to CSV file[default: None] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --config-cFILEPath to the TOML configuration file[default: None] --outdir-oPATHOutput directory for generated files[default: None] --id-prefix-pTEXTPrefix for need IDs[default: None] --delimiterTEXTDelimiter used in the CSV file[default: None] --encodingTEXTEncoding used in the CSV file[default: None] --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ License ─────────────────────────────────────────────────────────────────────────╮ --license-keyTEXT    Use a specific license key.      [env var: UBCONNECT_LICENSE_KEY] --license-userTEXT    Use a specific license user.      [env var: UBCONNECT_LICENSE_USER] --license-stageprod|devUse a specific license stage       [env var: UBCONNECT_LICENSE_STAGE] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging ─────────────────────────────────────────────────────────────────────────╮ --verbose-vShow debug information --quiet-qOnly show errors and warnings ╰───────────────────────────────────────────────────────────────────────────────────╯

to-csv

to-csv Usage: ubconnect csv to-csv [OPTIONS] [NEEDSJSON_PATH] Export needs.json to CSV ╭─ Arguments ───────────────────────────────────────────────────────────────────────╮ needsjson_path[NEEDSJSON_PATH]Path to needs.json file[default: None] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ─────────────────────────────────────────────────────────────────────────╮ --config-cFILEPath to the TOML configuration file[default: None] --outpath-oPATHOutput CSV file path[default: None] --delimiterTEXTDelimiter used in the CSV file[default: None] --encodingTEXTEncoding used in the CSV file[default: None] --helpShow this message and exit. ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ License ─────────────────────────────────────────────────────────────────────────╮ --license-keyTEXT    Use a specific license key.      [env var: UBCONNECT_LICENSE_KEY] --license-userTEXT    Use a specific license user.      [env var: UBCONNECT_LICENSE_USER] --license-stageprod|devUse a specific license stage       [env var: UBCONNECT_LICENSE_STAGE] ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging ─────────────────────────────────────────────────────────────────────────╮ --verbose-vShow debug information --quiet-qOnly show errors and warnings ╰───────────────────────────────────────────────────────────────────────────────────╯