enx cd

Navigate to a registered project directory by name.

Table of Contents

  1. TOC

Usage

enx cd <name>

Arguments

Argument Required Description
name Yes Name (or partial name) of the project to navigate to

Description

enx cd fuzzy-matches <name> against all registered project names. If a single match is found, enx prints the project’s path to stdout and the shell wrapper function changes to that directory.

If multiple projects match, an interactive fuzzy-select menu is displayed so you can pick the right one.

enx cd requires shell integration to actually change your working directory. A child process cannot change the parent shell’s directory — the shell wrapper function that enx setup installs handles this. See Shell Integration.

Examples

$ enx cd api
  ▸ Matched "api-service" (~/code/work/api-service)

$ enx cd my
  ▸ Matched "my-app" (~/code/my-app)

If the match is ambiguous, you’ll be presented with a selector:

$ enx cd a
? Select a project:
> api-service
  my-app

See Also