Lana Commerce CLI > Installation
OverviewLana Commerce CLIInstallation
Installation

The Lana Commerce CLI is a TypeScript-based command-line tool built on the Deno platform. It is distributed as a compiled binary for Windows, Linux, and macOS, but you can also run it directly as scripts if you have Deno installed. The compiled binary is the recommended approach for most users to avoid issues with script caching or Deno version compatibility.

Use the compiled binary

The compiled binary bundles the Deno runtime and Lana Commerce CLI scripts into a single executable, eliminating the need to install Deno separately. This is the simplest and most reliable way to use the tool.

Install and run the binary

  • Download the binary:

    • Visit the latest release page on GitHub.
    • Select the package for your operating system (Windows, Linux, or macOS).
  • Extract the archive:

    • Unzip the downloaded file to a directory of your choice.
  • Run the tool:

    • Open a terminal or command prompt.
    • Navigate to the directory containing the binary.
    • Run the binary:
      • On Windows: .\lana.exe
      • On Linux/macOS: ./lana

Make the binary globally accessible

To run the Lana Commerce CLI from any directory, add it to your system’s PATH environment variable. This allows your shell to locate the binary without specifying its full path.

Follow the instructions for your operating system:

Use the scripts directly (advanced)

Running the Lana Commerce CLI scripts directly is not recommended due to potential issues with script caching and Deno version compatibility. However, if you are an experienced Deno user, you can use the scripts without the compiled binary.

Prerequisites

  • Deno installed (version compatible with Lana Commerce CLI).
  • Git installed to clone the repository.

Set up and run the scripts

  • Clone the repository: git clone https://github.com/lana-commerce/lana-cli.git
  • Navigate to the project directory: cd lana-cli
  • Run the CLI tool: deno run -A ./lana.ts or just ./lana.ts.
  • Optionally install it: deno install --global --config ./deno.json -A ./lana.ts
PREVIOUS
Introduction
NEXT
Usage Guide