Installation
Multiple ways to install and use kist in your projects.
Prerequisites
- Node.js 20.0.0 or higher
- npm, yarn, or pnpm
Global Installation
Install kist globally to use the CLI from anywhere:
bash
npm install -g kistVerify the installation:
bash
kist --version
# Output: 0.1.62Project Installation
Install kist as a development dependency in your project:
npm
bash
npm install --save-dev kistyarn
bash
yarn add -D kistpnpm
bash
pnpm add -D kistInstalling Plugins
Install official action plugins as needed:
bash
# Style processing
npm install --save-dev @getkist/action-sass @getkist/action-postcss
# TypeScript & bundling
npm install --save-dev @getkist/action-typescript @getkist/action-tsup
# Code quality
npm install --save-dev @getkist/action-eslint @getkist/action-prettier
# Testing
npm install --save-dev @getkist/action-jest
# Assets
npm install --save-dev @getkist/action-svg @getkist/action-nunjucksUsing npx
Run kist without installing globally:
bash
npx kist --config kist.ymlDevelopment Setup
To contribute to kist or run from source:
bash
# Clone the repository
git clone https://github.com/getkist/kist.git
cd kist
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Link for local development
npm linkUpdating
Update kist to the latest version:
bash
# Global installation
npm update -g kist
# Project dependency
npm update kistTroubleshooting
Permission Issues (macOS/Linux)
If you encounter permission errors during global installation:
bash
# Fix npm permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrcNode Version
Ensure you're using Node.js 20+:
bash
node --version
# Should be v20.x.x or higherConsider using nvm to manage Node versions:
bash
nvm install 20
nvm use 20bash
npm run buildVerification
After installation, verify that the package is correctly installed:
bash
npm list @getkist/[project-name]