Skip to content

Command Line

DevKnife includes a small command-line wrapper that opens supported tools from the terminal.

The CLI is designed as a lightweight bridge into the app. It does not reimplement DevKnife tools in the shell. Instead, it opens DevKnife with the requested input already passed to the matching tool.

The devknife script is bundled inside the app:

Terminal window
/Applications/DevKnife.app/Contents/Resources/devknife

To make it available from any terminal session, create a symlink in a directory that is already in your PATH.

For example, if you use ~/.local/bin:

Terminal window
mkdir -p "$HOME/.local/bin"
ln -sfn "/Applications/DevKnife.app/Contents/Resources/devknife" "$HOME/.local/bin/devknife"

After that, restart your terminal or make sure ~/.local/bin is available in PATH:

Terminal window
echo "$PATH"

Run:

Terminal window
devknife --help

You should see the supported commands and examples.

Open Domain Whois with a domain:

Terminal window
devknife whois example.com

You can also use the longer command name:

Terminal window
devknife domain-whois example.com

Open IP Location with an IP address:

Terminal window
devknife ip 8.8.8.8

You can also use the longer command name:

Terminal window
devknife ip-location 8.8.8.8

The CLI uses DevKnife’s URL scheme internally. For example, the whois command opens DevKnife with the Domain Whois tool and passes the domain as input.

This means:

  • DevKnife must be installed on your Mac.
  • The command opens the DevKnife app.
  • Results are displayed inside DevKnife.
  • The CLI currently supports commands that map cleanly to URL-based app actions.