명령 이름은 port (단수). 시스템을 변경하는 거의 모든 게 sudo 필요 — MacPorts 격리 모델의 대가.
sudo port install <name> port install. 이름 뒤 +variant 토큰 추가하면 빌드 옵션 활성화, -variant 하면 디폴트 비활성화. port search <query> port 검색; --description 추가하면 이름뿐 아니라 description 도 검색. port info <name> 버전, 의존성, 사용 가능한 variants, 홈페이지 표시.
sudo port selfupdate port tree 새로고침. sudo port upgrade outdated 모든 outdated port 업그레이드 — Homebrew 식 '정의 새로고침' vs 'upgrade install' 분리 없음; 순서는 selfupdate 먼저, 그 다음 upgrade.
port installed 깐 거 다 표시. port installed active 활성 버전만 (MacPorts 는 다중 버전 install 유지하되 하나만 active 가능). sudo port uninstall inactive 오래된 inactive 버전 정리. sudo port reclaim 모든 가비지 컬렉션 — orphan deps, 옛 source tarball, build directory 제거.