cwp projects path
shipped 1.0.0cwp projects path <name> [flags]
Local only: it acts on no environment.
| Argument | What it is | Default |
|---|---|---|
<name> | registered project name |
| Flag | What it does | Default |
|---|---|---|
--with-agent | with —dry-run on a host with no shell: install and remove the PHP agent so the plan is real | off |
Plus the shared flags --json, -v, --verbose, -q, --quiet and --dry-run.
What it does
projects path 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.