version example

version command examples.

Examples

The following example describes a basic scenario of version command where the client build-id and client version are displayed.

scm version
Build Id: RTC-CLIENT-I20160216-1245
Version: 6.0.5M3

The following example describes the version command with [-c/--commands] option.

scm version -c
Build Id: RTC-CLIENT-I20160216-1245
Version: 6.0.5M3

com.ibm.team.rtc.cli.infrastructure, version 3.1.1100.v20160205_1752
Provides Subcommands:
  help

com.ibm.team.filesystem.cli.core, version 3.2.700.v20160216_1745
Provides Subcommands:
  daemon/deregister, daemon/start, daemon, daemon/stop, daemon/register

com.ibm.team.filesystem.cli.client, version 3.2.700.v20160216_1745
Provides Subcommands:
  diff, accept, remove/merge-queue, set/flowtarget, delete/workspace,
  remove/component, resolve/current-merge, workspace, create/stream,
  show/conflicts, resume/changeset, changeset, set/current-merge,
  show/sandbox-structure, lock/release, baseline, users/set, get/change,
  component/propertyget, list/remotefiles, query, change-target/workspace,
  list/users, workspace/propertyget, conflicts, set/custom-attribute,
  create/workspace, list/merge-queue, remove/subcomponent, list/flowtargets,
  changeset/disassociate, resolve, unload, workspace/remove-flowtargets,
  debug/fetch, undo/change, component, remove/property, baseline/propertyset,
  logout, create/changeset, extract/file, show/status, repair, validate,
  undo/current-merge, snapshot/propertyget, list, property/list, show/history,
  workspace/unload, delete, delete/stream, list/properties, list/changesets,
  list/states, unset, checkin, changeset/locate, show/custom-attributes,
  list/projectareas, show/lastmod, baseline/propertylist, changeset/suspend,
  preference/get, change-target/component, property/set, add/workitem,
  list/daemons, create/component, changeset/complete, undo, changeset/comment,
  list/accessgroups, load, set/preference, changeset/relocate,
  add/subcomponent, set, login, status, move/change, workspace/propertylist,
  show, workspace/change-target, changeset/extract, suspend, lock/list,
  extract, lock/acquire, changeaccess, get/file, locate, history,
  list/changes, changeset/discard, discard, workspace/remove-components, add,
  list/workspaces, list/baselines, lock, resume, delete/snapshot, lastmod,
  workspace/add-components, set/lock, workspace/flowtarget, property/remove,
  delete/state-content, workspace/add-flowtargets, annotate, show/properties,
  list/streams, unset/flowtarget, component/propertyset, list/connections,
  list/smartcard-aliases, version, changeset/associate, refresh,
  remove/workitem, share, workspace/component, compare, get/property,
  set/access, workspace/propertyset, change-target/unset-workspace,
  resume/merge-queue, get/preference, create/snapshot,
  list/missing-changesets, add/component, workspace/delete,
  baseline/propertyget, move/repository-path, debug/fetch/workspace, remove,
  unset/custom-attribute, get/attributes, list/snapshots, changeset/resume,
  users, resolve/conflict, snapshot/promote, workspace/unset, snapshot/delete,
  debug/fetch/changeset, list/teamareas, remove/flowtarget, list/preferences,
  create/loadrules, snapshot/propertyset, move/path, deliver, set/changeset,
  property/get, snapshot/propertylist, list/components, snapshot,
  show/baseline-hierarchy, show/attributes, add/flowtarget, preference/set,
  unset/lock, move, property, change-target, set/user, debug/fetch/uri, debug,
  preference, get, set/property, debug/fetch/component, debug/fetch/item,
  component/propertylist, create/baseline, get/custom-attribute,
  set/component, set/merge-queue, create, set/attributes, changeset/current,
  workspace/replace-components, list/locks

com.ibm.team.filesystem.cli.tools, version 3.1.1000.v20151207_2315
Provides Subcommands:
  tools.verify, tools.pkgtest, tools.echo.stdin, tools.metronome,
  tools.dump.streams.and.components, tools.dump/postprocess, tools.dump,
  tools.configvalue, tools.validate, tools.generatehelp, tools.log

The following example describes the version command with [-r/--repository-uri] option.

scm version -r "https://ella.ottawa.ibm.com:9443/jazz" -u userName -P password
Build Id: RTC-CLIENT-I20160216-1245
Version: 6.0.5M3

Server URI: https://ella.ottawa.ibm.com:9443/jazz/
Server Build Id: RJF-SERVER-I20160215-1214
Server Version: 6.0.5 M3

The following example describes the version command with [-s/--server] option. Unlike the -r option, the version command with -s option has to be run from within a valid sandbox.

scm version -s
Build Id: RTC-CLIENT-I20160216-1245
Version: 6.0.5M3

Server URI: https://ella.ottawa.ibm.com:9443/jazz/
Server Build Id: RJF-SERVER-I20160215-1214
Server Version: 6.0.5 M3

The following example describes the version command with [-d/--directory] option. You can combine this option with the -s option to be able to run the version -s command from any directory.

scm version -s -d PathToValidSandbox
Build Id: RTC-CLIENT-I20160216-1245
Version: 6.0.5M3

Server URI: https://ella.ottawa.ibm.com:9443/jazz/
Server Build Id: RJF-SERVER-I20160215-1214
Server Version: 6.0.5 M3

The following example describes how the version command supports JSON formatted output.

scm version -s -j
{
    "client-build-id": "RTC-CLIENT-I20160216-1245",
    "client-version": "6.0.5M3",
    "sandbox-repositories": [
        {
            "server-build-id": "RJF-SERVER-I20160215-1214",
            "server-uri": "https:\/\/ella.ottawa.ibm.com:9443\/jazz\/",
            "server-uuid": "_Qh6TYcgWEd-U1dy1YhOJSg",
            "server-version": "6.0.5 M3"
        }
    ]
}