instant-cli
v1.0.67
Published
Instant's CLI
Downloads
23,257
Readme
Welcome to Instant's command line tool. You can create apps, write schema, and push permissions.
npx instant-cli initGet Started
Start by peeking at the instant-cli docs.
Contributing
Here's how to set up a local development environment for instant-cli.
Quick Start
Clone this repo
git clone ..
# If you made any backend changes, run the server locally in a separate terminal
cd server
make dev
# Add --filter instant-cli to the 'dev' script in client/package.json to include
# instant-cli in the dev process
"dev": "turbo run dev ... --filter instant-cli"
# Now run the client to listen to cli changes
cd client
make dev
# Now go into a place where you can test out the CLI in your terminal
cd client/sandbox/cli-nodejs
INSTANT_CLI_DEV=1 npx instant-cli ...Testing local builds
You can link a local build of instant-cli globally so it's available as a regular command:
cd client/packages/cli
pnpm build
pnpm link --global
which instant-cli # should point to your pnpm global bin dirNow you can run instant-cli anywhere and it will use your local build.
To unlink:
pnpm unlink --global instant-cliQuestions?
If you have any questions, feel free to drop us a line on our Discord
