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.
Install the command
Section titled “Install the command”The devknife script is bundled inside the app:
/Applications/DevKnife.app/Contents/Resources/devknifeTo 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:
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:
echo "$PATH"Test the command
Section titled “Test the command”Run:
devknife --helpYou should see the supported commands and examples.
Domain Whois
Section titled “Domain Whois”Open Domain Whois with a domain:
devknife whois example.comYou can also use the longer command name:
devknife domain-whois example.comIP Location
Section titled “IP Location”Open IP Location with an IP address:
devknife ip 8.8.8.8You can also use the longer command name:
devknife ip-location 8.8.8.8How it works
Section titled “How it works”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.