Table of Contents

cd

Free

Description

Changes the current PDM directory.

Syntax

cd [-directory path | -filePath path | -id id [-idType Auto|Folder|File]]

Use one of -directory, -filePath, or -id. A folder target navigates to that folder and a file target navigates to its containing folder. See File IDs and paths.

Parameters

Parameter Alias Required Description
-directory (default) -d No Navigates to this directory. Path can be absolute or relative to the current directory. Use cd.. to navigate to the parent directory or cd\ to navigate back to the root vault. Right side of the command box indicates your current directory. ~ indicates you're at the root of the vault.
-id No PDM folder or file ID. Auto checks folders first, then files. Shared files require an exact path.
-idType No Auto (default), Folder, or File. Use only with -id.
-filePath -f No Folder or file path; a file navigates to its containing folder. Equivalent to -directory. Specify only one target selector.

More about parameters

  • directory (or d): The directory to switch to. The directory parameter can be a relative or absolute path in PDM.

Examples

cd -id 755
cd -id 123 -idType File
cd -id 755 -idType Folder
cd -filePath "\Projects\My Part.sldprt"

File and folder IDs can overlap. Auto chooses the folder first; specify File to force the file lookup. Shared files need an exact path. Files need not be cached locally to navigate to their vault folder. Failed navigation leaves the current folder unchanged.

cd -directory 'C:\Vault\NewFolder' # Navigates its newFolder

Remarks

  • Please be aware of the following special ways to change directory:
cd.. # Navigates to the parent folder
cd\  # Navigates to the root of the vault
  • If the user just created a new folder and wants to cd to it using autocomplete, they need to use the dir command with the -refresh parameter to force the session to load the current files and sub-folders in the active directory. Using -refresh might affect the performance of the session if the current folder has too many files and sub-folders.
  • directory is the default parameter. You do not need to specify it if it is the only parameter in your command. Example:
cd api #navigates to the api folder
cd -id 755 #navigates to the folder with id 755

Tutorial