Skip to main content
The Portal CLI provides commands to discover, install, and manage AI Explorer resources directly from your terminal. You can browse available rules and skills, install them into your project for use with Claude Code, Cursor, or Codex, and remove them when no longer needed.

Authentication

The list and install commands require authentication with your Portal instance. Sign in first:
The remove command operates locally and does not require authentication.

Commands

portal-cli ai list

Browse available rules and skills from your Portal instance.

Listing installed resources

Use --installed to see what’s already installed locally instead of querying the remote catalog:
This scans the appropriate directories for your chosen format (e.g. .claude/rules/, .claude/skills/ for Claude) and identifies which resources were installed through the CLI.

portal-cli ai install

Install rules and skills into your project. Provide one or more entity refs:

Where files are written

The install location depends on your chosen format and scope:
  • Project scope (default) writes relative to your project root (the nearest parent directory containing .git).
  • User scope (--scope user) writes relative to your home directory, making resources available across all projects.

portal-cli ai remove

Remove previously installed resources:
The remove command searches both project and user scopes for matching resources. It only removes files that were installed through the CLI — manually created rules and skills are left untouched.

Managed files

When the CLI installs a resource, it adds a portal block to the file’s YAML frontmatter:
This metadata lets the CLI:
  • Identify Portal-managed files — the remove command only deletes files with managed: true, protecting your manually authored resources
  • Track provenancelist --installed reads the entityRef to show which catalog entity each file came from
  • Record install timedownloadedAt shows when the resource was last installed