Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

sysand add

Add usage to project information

Usage

sysand add [OPTIONS] <IRI> [VERSION_CONSTRAINT]

Description

Adds IRI and optional version constraint to list of usages in the project information file .project.json. By default this will also update the lockfile and sync the local environment (creating one if not already present).

Arguments

  • <IRI>: IRI identifying the project to be used
  • [VERSION_CONSTRAINT]: A constraint on the allowable versions of a used project Assumes that the project uses Semantic Versioning See versionConstraint docs for details

Options

  • --no-lock: Do not automatically resolve usages (and generate lockfile)
  • --no-sync: Do not automatically install dependencies

Dependency options

  • --index [<INDEX>...]: URLs for indexes to use when resolving dependencies, in addition to the default indexes.
  • --default-index [<DEFAULT_INDEX>...]: Set and override URL:s of the default indexes (by default ‘https://beta.sysand.org’)
  • --no-index: Do not use any index when resolving this usage
  • --include-std: Include usages of KerML/SysML v2 standard libraries if present

Global options

  • -v, --verbose: Use verbose output
  • -q, --quiet: Do not output log messages
  • --no-config: Disable discovery of configuration files
  • --config-file <CONFIG_FILE>: Give path to ‘sysand.toml’ to use for configuration
  • -h, --help: Print help