Skip to main content

rename

Descriptionโ€‹

Renames an existing project, package, or a specific package version.

Keep in mind that every project/package name combination must be unique on the level of each package store.

New project and package names should not clash with any of the existing name combinations in the same package store. In other words, you can't rename my-project/package-one into my-project/package-two if the latter already exists in the package store.

Usageโ€‹

rl-secure rename <from> <to> [<rl-store>]

rl-secure rename --from=<from> --to=<to> --rl-store=[<rl-store>]

Optionsโ€‹

OptionDescription
--fromRequired. Current package URL to rename, in the format [pkg:type/]<project>[/<package>[@<version>]]
--toRequired. New package URL to rename, in the format [pkg:type/]<project>[/<package>[@<version>]]
-h, --helpDisplay usage information and exit.
-s, --rl-storePath to an initialized package store containing the package to rename. If not provided, the current directory is used.

Examplesโ€‹

Change the package versionโ€‹

This example renames a specific package version in a project. It's a subtle change - increasing part of the version number. You can use any of the two supported syntax approaches (simplified or extended).

The command expects the package store to exist in the current directory. Use the -s or --rl-store options to provide an alternative path to the package store.

rl-secure rename pkg:rl/my-project/my-package@1.0.1 pkg:rl/my-project/my-package@1.0.2

Change a project nameโ€‹

This example renames an existing project in a previously initialized package store. You can use any of the two supported syntax approaches (simplified or extended).

The command expects the package store to exist in the current directory. Use the -s option to provide an alternative path to the package store.

rl-secure rename pkg:rl/my-project pkg:rl/my-releases