Skip to content

Metakip CLI: Install And Manage Pages

The Metakip CLI lets you use Metakip from a terminal. The browser and CLI use the same content layer, so a page created or edited by the CLI appears in the browser.

You need a Metakip account and a named API token from Metakip Settings → API tokens. The token is shown only when it is created. Keep it private.

On Linux and macOS:

Terminal window
curl -fsSL https://metakip.com/install.sh | sh

On Windows PowerShell:

Terminal window
irm https://metakip.com/install.ps1 | iex

The installer adds the CLI directory to your shell profile, but profile changes apply only to future sessions. Open a new terminal, or reload the appropriate profile (source ~/.bashrc, source ~/.zshrc, or . $PROFILE in PowerShell), before invoking metakip by name.

Check the installation:

Terminal window
metakip --version

You should see the installed CLI version. If the command is not found, open a new terminal or reload the profile that the installer changed.

Create a named token in Metakip Settings → API tokens, then run:

Terminal window
metakip login

For a self-hosted server:

Terminal window
metakip login --url https://your-metakip.example.com

Check the connection without printing the token:

Terminal window
metakip whoami
metakip doctor
Terminal window
metakip page search "project notes"
metakip page list
metakip page view "Page Title"
metakip --json page search "project notes"
metakip --json page list
metakip --json page view PAGE_ID

page search searches page titles only and returns at most 20 matching pages, including their folder paths. Use a returned page ID with page view or another page command. Use page IDs in scripts; titles are convenient for interactive use but can be ambiguous.

Terminal window
metakip page create --title "Research Notes" --content-file notes.md

For a small, targeted change:

Terminal window
metakip page edit exact PAGE_ID \
--old-text "The old exact passage." \
--new-text "The revised passage."

Read the page immediately before editing. The CLI refuses to guess if the passage is missing, repeated, or changed.

Terminal window
metakip import page notes.md
metakip import folder ./notes
metakip export page PAGE_ID --output page.md
metakip export all --output metakip-export.zip

Install the Metakip skill for tools that support Agent Skills:

Terminal window
metakip skill install

The skill gives supported tools instructions for safe page discovery and exact edits. It does not create a separate copy of your pages.

Do not paste a token into a chat, commit it to a repository, or put it directly in a command that could be saved in shell history. For non-interactive use, set METAKIP_TOKEN and, for a self-hosted server, METAKIP_URL in the environment.