The Folderr Management CLI
More up to date documentation can be found https://folderr.net/guides/cli/getting-started
Useful for setting up and updating Folderr.
foldcli is a application written in go
and expects go
version 1.20
or later (if building).
Commands tested on Linux (Ubuntu):
foldcli
foldcli init folderr
foldcli install folderr
foldcli setup db
Most up to date version will be from building from source
- Grab from latest tag
- Add to path
- Reload any terminal you wish to use on.
Prerequestities:
install with
git clone https://github.com/Folderr/foldcli
Build with
# in install directory
go build .
Place into your PATH
(Find path in your terminal)
$PATH
# Usually /usr/bin, /usr/share/bin, or /usr/local/bin for linux
# Alternatively for linux: $HOME/.local/bin
On first run use foldcli init
to initialize the cli
This can be done interactively or non-interactively. This is the only command that has interactivity currently
Non-interactive example:
foldcli init /home/folderr/folderr https://github.com/Folderr/Folderr
Please use staticcheck
for linting Go, and use go vet
before comitting.
These are ran on pull request and push!
- Uses staticcheck 2023.1.3 in CI
Dev environment is unchanged from other environments.
Please also use go test ./cmd
before committing (this requires NodeJS 14 or later installed, and NPM).