Skip to content

cwp projects path

shipped 1.0.0
cwp projects path <name> [flags]

Local only — it acts on no environment.

ArgumentWhat it isDefault
<name>registered project name

Plus the shared flags --json, --verbose and --dry-run.

What it does

Writes one project’s directory to stdout, and nothing else.

A CLI cannot change its parent shell’s working directory, so cwp does not pretend to. This is the half a shell needs:

cd "$(cwp projects path atelier-nord)"

Add a wrapper to your own profile if you want it shorter — cwp will not write to your profile for you:

cwpcd() { cd "$(cwp projects path "$1")" || return; }

An unknown name exits 2 and lists the names that do exist.

What it does not do

It does not change your working directory, and it cannot. It does not check that the project is healthy — cwp projects is the listing that classifies stale entries.