Skip to content

Quickstart

Connecting to LoonFS and writing a file.

Terminal window
curl -fsSL https://install.loonfs.com | sh
loonfs version

The CLI can connect to a LoonFS server or directly to an object storage bucket. Choose one of the following:

Use the server’s HTTPS endpoint and bearer token:

Terminal window
export LOONFS_AUTH_TOKEN="<your-token>"
loonfs --no-input profile create remote default \
--server-url "https://<your-endpoint>"

In embedded mode, the CLI reads and writes directly to the bucket. No LoonFS server is required.

First, follow the S3 configuration guide to create a bucket and configure credentials. Then create a profile:

Terminal window
loonfs --no-input profile create s3 default \
--bucket "<bucket_name>" \
--region "<aws_region>"

A namespace contains the files and folders for the filesystem.

Terminal window
loonfs namespace create demo
loonfs use demo
Terminal window
printf 'Hello from LoonFS\n' | loonfs put - /hello.txt
loonfs ls /
loonfs cat /hello.txt

The final command prints Hello from LoonFS.

See the CLI reference for more commands, including copying files, viewing revision history, and restoring deleted files.

Finally, a hosted LoonFS server can be used without the CLI via the API or any of the available SDKs.