@superlayer/cli
v2.0.0
Published
Superlayer's CLI
Readme
@superlayer/cli
Superlayer's CLI.
Maintained by Superlayer. See LICENSE.md and NOTICE for upstream attribution.
Welcome to Superlayer’s command line tool. You can create apps, write schema, and push permissions.
npx @superlayer/cli initGet Started
Start by peeking at the superlayer docs.
Contributing
Here's how to set up a local development environment for Superlayer.
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 @superlayer/cli to the 'dev' script in client/package.json to include
# superlayer in the dev process
"dev": "turbo run dev ... --filter @superlayer/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
SUPERLAYER_CLI_DEV=1 npx @superlayer/cli ...Testing local builds
You can link a local build of superlayer globally so it's available as a regular command:
cd client/packages/cli
pnpm build
pnpm link --global
which superlayer # should point to your pnpm global bin dirNow you can run superlayer anywhere and it will use your local build.
To unlink:
pnpm unlink --global @superlayer/cliQuestions?
If you have any questions, feel free to drop us a line on our issue tracker
