Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

initializing/creating files in CM repository using scm comma

I guess its easy when you're using Eclipse in a project, to create the files in the scm repository, but I'm not and I can't find out how to setup e.g. some xml files under config mgmt using the scm.exe command-line interface. Help!?!

0 votes



One answer

Permanent link
It's easy with RTC and it's easy with the CLI too.

Here's a quick and easy recipe for getting started. If you haven't already done so, II recommend that you take a look at the online docs and the CLI's help ($ scm help).

0. Login to your repo and give it a nickname of 'l' (as in "local").

1. Create a new repo workspace:
$ scm create workspace -r l myNewWorkspace
Workspace (6076) "myNewWorkspace" successfully created
Component (6077) "myNewWorkspace Default Component" successfully created

2. Share your files into that workspace:
$ scm share -r l myNewWorkspace 6077 /tmp/shareDir/files4u
Uploading files...
Shared successfully

3. List the contents of the remote workspace
$ scm list remotefiles -r l myNewWorkspace 6077
/
/files4u/
/files4u/someFile
/files4u/.project


NOTES:
- '6077' is the alias of the component named "myNewWorkspace Default Component". The alias is shorter to type, so I used that. I could have used the full name.
- Other directories can be shared out of /tmp/shareDir

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 14 '08, 10:11 a.m.

Question was seen: 7,374 times

Last updated: Nov 14 '08, 10:11 a.m.

Confirmation Cancel Confirm