mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 23:48:09 -05:00
33 lines
748 B
Bash
33 lines
748 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "Setting up Sim Studio CLI Package..."
|
|
|
|
# Create directory structure if it doesn't exist
|
|
mkdir -p packages/@sim/cli/bin
|
|
mkdir -p packages/@sim/cli/src/commands
|
|
mkdir -p packages/@sim/cli/src/utils
|
|
|
|
# Navigate to CLI directory
|
|
cd packages/@sim/cli
|
|
|
|
# Install dependencies
|
|
echo "Installing CLI dependencies..."
|
|
npm install
|
|
|
|
# Build the CLI package
|
|
echo "Building CLI package..."
|
|
npm run build
|
|
|
|
# Make the CLI executable
|
|
chmod +x bin/sim.js
|
|
|
|
echo "✅ CLI setup complete!"
|
|
echo ""
|
|
echo "You can now run:"
|
|
echo " npm run cli:start - to test the CLI"
|
|
echo " npm run cli:dev - to develop the CLI with live reload"
|
|
echo " npm run cli:publish - to publish to npm"
|
|
echo ""
|
|
echo "Try it out with: ./packages/@sim/cli/bin/sim.js" |