New to Portal CLI? See Get started with Portal
CLI to set up
authentication and run your first commands.
Authentication
Thelist and install commands require authentication with your Portal instance. Sign in first:
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:
.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 aportal block to the file’s YAML frontmatter:
- Identify Portal-managed files — the
removecommand only deletes files withmanaged: true, protecting your manually authored resources - Track provenance —
list --installedreads theentityRefto show which catalog entity each file came from - Record install time —
downloadedAtshows when the resource was last installed