@prism-lang/cli
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

@prism-lang/cli

Command-line interface for the Prism programming language.

📚 Full Documentation | 🚀 Getting Started | 💻 CLI Guide

Installation

# Install globally
npm install -g @prism-lang/cli

# Or use with npx
npx @prism-lang/cli

Usage

Run a Prism file

prism run myfile.prism

Start the REPL

prism repl

Execute inline code

prism eval "x = 5 ~> 0.9; print(x)"

Check version

prism --version

Features

  • Run Prism files: Execute .prism files from the command line
  • Interactive REPL: Explore Prism interactively with confidence tracking
  • Inline evaluation: Quick one-liners for testing
  • LLM Integration: Built-in support for AI providers when configured

Configuration

Set up LLM providers with environment variables:

# Anthropic Claude
export CLAUDE_API_KEY=your-key

# Google Gemini
export GEMINI_API_KEY=your-key

Examples

# Run a file with AI safety checks
prism run safety-check.prism

# Start REPL with confidence tracking
prism repl

# Quick calculation with uncertainty
prism eval "temp = 72 ~> 0.95; print('Temperature:', temp)"

Related Packages

License

MIT

Package Sidebar

Install

npm i @prism-lang/cli

Weekly Downloads

6

Version

1.2.3

License

MIT

Unpacked Size

25.9 kB

Total Files

10

Last publish

Collaborators

  • haruhunab1320