pi ip copy

Command Help

> pi ip copy -h
Usage: pi ip copy [-h] [--message MESSAGE] [--repo-path REPO_PATH]
                  source destination

Description: Create a new IP or new Line based on an existing IPV. For new IP
the Line @.TRUNK is created. For new Line the source IPV and destination Line
must belong to the same IP. Copy to new Line of new IP is an error. The
destination, either new IP or new Line, cannot already exist.  If no
Version/Line is specified for source IPV will default to the latest Version of
Line @.TRUNK.

Positional arguments:
  source                Source IPV
  destination           Destination IP or Line

Optional arguments:
  --message MESSAGE, -m MESSAGE, -d MESSAGE
                        Version message for the initial IPV of the new IP.
  --repo-path REPO_PATH
                        The repository location of the destination IP which
                        must be specified for all IP except Container IP.
  -h, --help            Show this help message and exit

Examples:
# create the new IP proj.adc2 based on the latest Version of the Line
proj.adc1@.TRUNK and use the repository location //depot/proj/adc2
  pi ip copy --repo-path //depot/proj/adc2 proj.adc1 proj.adc2

# create the new Line proj.adc1@.line2 based on the latest Version of the Line
proj.adc1@.TRUNK and use the repository location //depot/proj/adc1/line2
  pi ip copy --repo-path //depot/proj/adc1/line2 proj.adc1 proj.adc1@.line2

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

Example

> pi ip cp -m "new top level for projectX" tutorial.tutorial projectx.projectx --repo-path //mdx_test/projectx/projectx/TRUNK
Successfully created new IP Version 'projectx.projectx@0.TRUNK'.