Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alokai-cli-storefront

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alokai-cli-storefront

Alokai CLI for Alokai Storefront

  • 0.0.10
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Alokai CLI Starter Project

This is a starter project for creating a new CLI command using the Alokai CLI framework.

Getting Started

To get started, you can clone this repository and then install the dependencies.

git clone
cd alokai-cli-starter
pnpm install

Creating a New Command

To create a new command, you can create a new file inside the src/commands directory. The file should export a constant that is an instance of the Command.

import { Command } from "commander";

export const command = new Command()
  .name("Alokai CLI New Command Template")
  .description("Alokai CLI New Command Template is a template for creating new commands for the Alokai CLI")
  .version("0.0.1", "-v, --version", "display the version number")
  .action(() => {
    console.log("Hello, world!");
  })

Building the Project

To build the project, you can run the following command:

pnpm build

Running the Project

To run the project, you can run the following command:

pnpm start

In development mode, you can run the following command:

pnpm start:dev

Testing the Project

To test the project, you need to link it with the vue-storefront/packages/alokai-cli package. For this, I'm using yalc - a local NPM registry for your Yarn and pnpm projects.

First, you need to install yalc globally:

pnpm add -g yalc

Then, you need to publish the package to the local registry:

pnpm build
yalc publish # this will publish alokai-[your-package-name] to the local registry

After that, you can link the package to the vue-storefront/packages/alokai-cli package:

cd vue-storefront/packages/alokai-cli
yalc add alokai-[your-package-name]

Finally, you can run the command:

  # in the vue-storefront/packages/alokai-cli directory

  ./dist/index.js [your-command-name]

Keywords

FAQs

Package last updated on 08 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc