Skip to content

LioranGroupOfficial/ldb-server-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

liorandb-server-windows

This package installs the LioranDB Windows portable ZIP and (optionally) adds the install folder to your PATH.

It resolves the latest Windows ZIP from https://db.lioransolutions.com/release.json (default channel), and will not download again if the latest version is already installed in the target folder.

Install

py -m pip install liorandb-server-windows

One-command setup (recommended)

Installs into %USERPROFILE%\.liorandb, adds it to User PATH, and tells you what to run next:

liorandb-server-windows

If that command is not found (your Python Scripts folder isn’t on PATH), run:

py -m liorandb_server_windows

Open a new terminal, then run:

ldb-serve

Add to PATH manually (PowerShell)

Avoids adding duplicates:

$dir = 'C:\LioranDB-Server'
$p = [Environment]::GetEnvironmentVariable('Path', 'User')
if (-not ($p -split ';' | Where-Object { $_.TrimEnd('\') -ieq $dir.TrimEnd('\') })) {
  [Environment]::SetEnvironmentVariable('Path', ($p + ';' + $dir), 'User')
}

Or via this package:

liorandb-server-windows add-to-path --target $env:USERPROFILE\.liorandb

Open a new terminal afterwards.

Fix “command not found” for liorandb-server-windows

Add Python’s Scripts directory to User PATH:

$scripts = py -c "import sysconfig; print(sysconfig.get_path('scripts'))"
$p = [Environment]::GetEnvironmentVariable('Path','User')
if (-not ($p -split ';' | Where-Object { $_.TrimEnd('\') -ieq $scripts.TrimEnd('\') })) {
  [Environment]::SetEnvironmentVariable('Path', ($p + ';' + $scripts), 'User')
}

CLI help

liorandb-server-windows --help
liorandb-server-windows install --help

To auto-add to PATH instead of printing a command:

liorandb-server-windows install --path-scope user

To only print a command (no PATH changes):

liorandb-server-windows install --path-scope none

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages