mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
feat(domain): drop the 'studio' (#818)
* feat(domain): drop the * change all references for Sim Studio to Sim * change back license and notice * lint --------- Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Sim Studio CLI
|
||||
# Sim CLI
|
||||
|
||||
Sim Studio CLI allows you to run [Sim Studio](https://simstudio.ai) using Docker with a single command.
|
||||
Sim CLI allows you to run [Sim](https://sim.ai) using Docker with a single command.
|
||||
|
||||
## Installation
|
||||
|
||||
To install the Sim Studio CLI globally, use:
|
||||
To install the Sim CLI globally, use:
|
||||
|
||||
```bash
|
||||
npm install -g simstudio
|
||||
@@ -12,7 +12,7 @@ npm install -g simstudio
|
||||
|
||||
## Usage
|
||||
|
||||
To start Sim Studio, simply run:
|
||||
To start Sim, simply run:
|
||||
|
||||
```bash
|
||||
simstudio
|
||||
@@ -20,7 +20,7 @@ simstudio
|
||||
|
||||
### Options
|
||||
|
||||
- `-p, --port <port>`: Specify the port to run Sim Studio on (default: 3000).
|
||||
- `-p, --port <port>`: Specify the port to run Sim on (default: 3000).
|
||||
- `--no-pull`: Skip pulling the latest Docker images.
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "simstudio",
|
||||
"version": "0.1.19",
|
||||
"description": "Sim Studio CLI - Run Sim Studio with a single command",
|
||||
"description": "Sim CLI - Run Sim with a single command",
|
||||
"main": "dist/index.js",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
@@ -28,7 +28,7 @@
|
||||
"automation",
|
||||
"docker"
|
||||
],
|
||||
"author": "Sim Studio",
|
||||
"author": "Sim",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.2",
|
||||
|
||||
@@ -17,10 +17,10 @@ const DEFAULT_PORT = '3000'
|
||||
|
||||
const program = new Command()
|
||||
|
||||
program.name('simstudio').description('Run Sim Studio using Docker').version('0.1.0')
|
||||
program.name('simstudio').description('Run Sim using Docker').version('0.1.0')
|
||||
|
||||
program
|
||||
.option('-p, --port <port>', 'Port to run Sim Studio on', DEFAULT_PORT)
|
||||
.option('-p, --port <port>', 'Port to run Sim on', DEFAULT_PORT)
|
||||
.option('-y, --yes', 'Skip interactive prompts and use defaults')
|
||||
.option('--no-pull', 'Skip pulling the latest Docker images')
|
||||
|
||||
@@ -85,7 +85,7 @@ async function cleanupExistingContainers(): Promise<void> {
|
||||
async function main() {
|
||||
const options = program.parse().opts()
|
||||
|
||||
console.log(chalk.blue('🚀 Starting Sim Studio...'))
|
||||
console.log(chalk.blue('🚀 Starting Sim...'))
|
||||
|
||||
// Check if Docker is installed and running
|
||||
const dockerRunning = await isDockerRunning()
|
||||
@@ -225,7 +225,7 @@ async function main() {
|
||||
}
|
||||
|
||||
// Start the main application
|
||||
console.log(chalk.blue('🔄 Starting Sim Studio...'))
|
||||
console.log(chalk.blue('🔄 Starting Sim...'))
|
||||
const appSuccess = await runCommand([
|
||||
'docker',
|
||||
'run',
|
||||
@@ -250,13 +250,11 @@ async function main() {
|
||||
])
|
||||
|
||||
if (!appSuccess) {
|
||||
console.error(chalk.red('❌ Failed to start Sim Studio'))
|
||||
console.error(chalk.red('❌ Failed to start Sim'))
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
console.log(
|
||||
chalk.green(`✅ Sim Studio is now running at ${chalk.bold(`http://localhost:${port}`)}`)
|
||||
)
|
||||
console.log(chalk.green(`✅ Sim is now running at ${chalk.bold(`http://localhost:${port}`)}`))
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
`🛑 To stop all containers, run: ${chalk.bold('docker stop simstudio-app simstudio-db simstudio-realtime')}`
|
||||
@@ -270,14 +268,14 @@ async function main() {
|
||||
})
|
||||
|
||||
rl.on('SIGINT', async () => {
|
||||
console.log(chalk.yellow('\n🛑 Stopping Sim Studio...'))
|
||||
console.log(chalk.yellow('\n🛑 Stopping Sim...'))
|
||||
|
||||
// Stop containers
|
||||
await stopAndRemoveContainer(APP_CONTAINER)
|
||||
await stopAndRemoveContainer(DB_CONTAINER)
|
||||
await stopAndRemoveContainer(REALTIME_CONTAINER)
|
||||
|
||||
console.log(chalk.green('✅ Sim Studio has been stopped'))
|
||||
console.log(chalk.green('✅ Sim has been stopped'))
|
||||
process.exit(0)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user