@creek/studio-cli
v0.0.8
Published
Creek Studio CLI - Creek.org
Readme
Creek Studio CLI
A command line tool for Creek Studio.
You can use it to start a development environment.
Eventually, it will also deploy a production environment — once Creek Studio is ready for people to host it themselves.
Quick Start
With NPX
Run this command:
npx @creek/studio-cli create-devInspect the .env file.
cd studio/studio-cli cat .envThe
.envincludes the initial user's email and password, among other settings.This
.envfile will get copied to thestudio-serverproject when you run the next command below (./creek start-dev).- Do not edit the .env file in the
studio-serverproject directly.
- Do not edit the .env file in the
Start the development environment:
./creek start-dev
Options:
--domain(default:localhost)If you want to use a different domain name, you can pass it in like this:
npx @creek/create-studio-dev --domain "mydomain.com"
--path(default:./studio)The path to create the development environment in.
npx @creek/create-studio-dev --path "/path/to/creek/studio"
./creek CLI
In addition to the NPX command above, you can directly use the ./creek script in this studio-cli project to run other commands.
Create a new development environment with ./creek
Create a new development environment like this:
Make sure that you have Docker installed.
Clone this repository:
git clone [email protected]:studio/studio-cli.gitCreate a new project for development:
cd studio-cli ./creek create-dev --domain "localhost"This will clone the studio-interface and studio-server repositories into the same parent directory as this
studio-clirepository.It will also rebuild the
.envfile in this folder, including updating the domain name tolocalhost(or whatever you passed in as the--domainargument).
Inspect the
./.envfile in thisstudio-clidirectory.Includes the initial user's email and password, among other settings.
This
.envfile will get copied to thestudio-serverproject when you run the next command below (./creek start-dev).- Do not edit the .env file in the
studio-serverproject directly.
- Do not edit the .env file in the
Start the Creek Studio development environment:
./creek start-dev
Commands
Create Dev
This command will create a new project for development.
./creek create-dev --domain "localhost"Start Dev
This command will start the project in development mode.
./creek start-devStart Dev in Background
This command will start the project in development mode, but in the background.
./creek start-dev-in-backgroundLogs
This command will show the logs for the project.
./creek logs allDestroy
This command will destroy the project and all of its data, so that you can rebuild it from scratch.
./creek destroy