Skip to main content

What is the CLI?

directify is the official command-line tool. It wraps the Directify REST API so you can manage your directory from your terminal, shell scripts, or CI pipelines — no AI required. It’s ideal for power users and automation.

Install

Requires Node.js 18+.
Or run it without installing, using npx:

Connect

1

Get your API token

In your Directify dashboard, go to Settings → API and click the Key icon to generate a token.
2

Authenticate

Your token is stored locally so you only do this once.
3

Set a default directory

Start managing

Every command supports --help, and most accept -d, --directory <id> to target a specific directory (overriding the default) and --json for machine-readable output.
The CLI mirrors the API one-to-one. If a command errors with a validation message, it’s coming straight from the API — see Authentication → Error Responses for what each status code means.

Common command groups

Run directify --help (or directify <group> --help) to see every command and option.

Multilingual directories

On directories with more than one language (requires CLI 1.6.0 or later):
Bulk-create files can include translations and source_locale per listing. Each command’s --help lists the fields it can translate; see Languages & Translations for details.
Want to manage your directory by chatting with an AI assistant instead? See the MCP Server guide.