Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8241361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:48:39+00:00 2026-06-07T20:48:39+00:00

I have created a new clientspec using the command : p4 client abc; abc

  • 0

I have created a new clientspec using the command :

p4 client abc;

abc is the name of my cs

Now I want to change the root of this cs.

Can somebody please tell that how can I change the root of this clientspec without explicitly modifying the client file.(i.e. by using some command).
And is there any option of mentioning the root path while creating or setting the client (through command line)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T20:48:41+00:00Added an answer on June 7, 2026 at 8:48 pm

    Here are some tips:

    When creating a client a new client spec, you can seed the Root field by using the -d global option, e.g.:

    p4 -d /this/is/the/client/root client NewClientName
    

    You can also pipe the output of ‘p4 client -o’ to ‘p4 client -i’ to create or modify a client spec without having to open an editor, e.g.:

    p4 -d /this/is/the/client/root client -o NewClientName | p4 client -i
    

    The p4 -d trick won’t do anything to replace the Root field in an existing client spec, however. For that, you need an inline filter, something like this:

    p4 client -o ExistingClientName | sed -e '/Root:/ s,.*,Root: /new/root/path,' | p4 client -i
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a new Bitmap object and now want do draw some text
I have created new PDFs many times using Zend and PHP. But Now I
I have created a new database table with the name 'table'. Now i'm trying
I have created new room for group chat by using this- XMPPRoomCoreDataStorage *rosterstorage =
I have created new rows using Javascript function addRow(id) , but I can't delete
I have created a new application using Entity Framework 4.3 database migrations. The migrations
Using TFS 2010. I have created a number of new Build Definitions. I also
I have created a new library file sampler.rb inside the lib folder. Consider this
I have created new authentication method and now need to replace the current home
I have created a new project in Ios5 using storyboards and my project has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.