Stormkit Command Line Interface
# Using npm
npm install @stormkit/cli
# Using yarn
yarn add @stormkit/cli
# Using pnpm
pnpm install @stormkit/cli
stormkit env pull
Pull environment variables from the environment.
Options:
--help Show help [boolean]
--version Show version number [boolean]
-d, --debug Prints additional logs.
Usage:
- Create an API Key from Environments > Your environment > API Keys.
- Create a
.env
file in your project root. - Add
SK_API_KEY=<your_api_key>
to the .env file
npx @stormkit/cli env pull
stormkit api
Starts an API development server
Options:
--help Show help [boolean]
--version Show version number [boolean]
-p, --port Specify the port on which the API server should listen.
[default: "9090"]
-d, --dir Specify the directory in which the API routes are located. This
path is relative to project root. [default: "api"]
Usage:
{
"scripts": {
"dev:api": "stormkit api"
}
}
npm run dev:api -- --port 9090 --dir src/api
Run the bin
command in the scripts. For example to test the e2e folder:
npm run bin -- api -d e2e
MIT