Prerequisites#
- Operating systems: macOS, Linux, or Windows (WSL is recommended for Windows).
- Node.js, Bun, or Yarn installed.
- System PATH points to the global package installation location.
Installation#
Install Lokio CLI globally using one of the following package managers:
Bun#
bun add -g lokionpm#
npm install -g lokioYarn#
yarn global add lokioNotes:
- If you're behind a proxy, ensure
HTTP_PROXY/HTTPS_PROXYare configured. - Consider setting a global prefix to avoid requiring
sudo.
Verification#
Display the version to verify the installation:
lokio --versionProject Compatibility#
Lokio CLI can be used with various types of projects:
- Golang
- Next.js
- Vue
- Rust
- Hono
- And more
Navigate into your project directory, then run Lokio commands.
Project Initialization#
Navigate into your project directory and run:
cd /path/to/your-project
lokio initThe following structure will be created:
project/
├── lokio.yaml # Project configuration
└── lokio/
├── configs.yaml # Template registry
└── templates/ # Template files directory
└── example.lokio # Example template
Structure Explanation#
lokio.yaml
Project-level configuration for team work patterns (project name, conventions, template references).lokio/configs.yaml
Catalog of templates and rules used across the team.lokio/templates/
Directory containing Lokio template files; useexample.lokioas an initial reference.