# lakectl (lakeFS command-line tool)

> [!NOTE]
>
> This file (cli.md) is automatically generated from the Go code files under `cmd/lakectl`. Any changes made directly to the Markdown file will be overwritten, and should instead be made to the relevant Go files.

## Installing lakectl locally

`lakectl` is available for Linux, macOS, and Windows. You can also [run it using Docker](<#running-lakectl-from-docker>).

Or using [Homebrew](<https://brew.sh/>) for Linux/macOS:

```bash
brew tap treeverse/lakefs
brew install lakefs
```

### Configuring credentials and API endpoint

Once you've installed the lakectl command, run:

```bash
lakectl config
# output:
# Config file /home/janedoe/.lakectl.yaml will be used
# Access key ID: AKIAIOSFODNN7EXAMPLE
# Secret access key: ****************************************
# Server endpoint URL: http://localhost:8000
```

This will setup a `$HOME/.lakectl.yaml` file with the credentials and API endpoint you've supplied. When setting up a new installation and creating initial credentials (see [Quickstart](<https://docs.lakefs.io/quickstart/index.md>)), the UI will provide a link to download a preconfigured configuration file for you.

## lakectl Configuration

`lakectl` reads its configuration from a YAML file (default path `~/.lakectl.yaml`, overridable with `--config` or `LAKECTL_CONFIG_FILE`) and/or from environment variables.

- Every configuration key can be supplied through an environment variable using the pattern `LAKECTL_<UPPERCASE_KEY_WITH_DOTS_REPLACED_BY_UNDERSCORES>`.
- Any value given on the command-line flags overrides the value in the configuration file, which in turn overrides the value supplied through the environment.

### Reference

- `credentials.access_key_id` `(string : required)` - Access-key ID used to authenticate against lakeFS.
- `credentials.secret_access_key` `(string : required)` - Secret access key paired with the access key ID.
- `credentials.provider.type` `(string : "")` - Deprecated. Accepted so that existing configuration files keep loading, and ignored. AWS IAM authentication is available in lakeFS Enterprise, which ships its own `lakectl`.
- `credentials.provider.aws_iam.token_ttl_seconds`, `credentials.provider.aws_iam.url_presign_ttl_seconds`, `credentials.provider.aws_iam.refresh_interval`, `credentials.provider.aws_iam.token_request_headers` - Deprecated with the key above.
- `network.http2.enabled` `(bool : true)` - Enable HTTP/2 for the API client.
- `server.endpoint_url` `(string :` http://127.0.0.1:8000 \`) - Base URL of the lakeFS server.
- `server.retries.enabled` `(bool : true)` - Whether lakectl tries more than once.
- `server.retries.max_attempts` `(uint : 4)` - Maximum number of attempts per request.
- `server.retries.min_wait_interval` `(duration : 200ms)` - Minimum back-off between retries.
- `server.retries.max_wait_interval` `(duration : 30s)` - Maximum back-off between retries.
- `options.parallelism` `(int : 25)` - Default concurrency level for I/O operations (upload, download, etc.).
- `local.skip_non_regular_files` `(bool : false)` - When true, symbolic links and other non-regular files are skipped during `lakectl local` operations instead of causing an error.
- `experimental.local.posix_permissions.enabled` `(bool : false)` - Preserve POSIX permissions when syncing files.
- `experimental.local.posix_permissions.include_uid` `(bool : false)` - Include UID in the stored metadata.
- `experimental.local.posix_permissions.include_gid` `(bool : false)` - Include GID in the stored metadata.

## Running lakectl from Docker

If you'd rather run `lakectl` from a Docker container you can do so by passing configuration elements as environment variables. Here is an example:

```bash
docker run --rm --pull always \
          -e LAKECTL_CREDENTIALS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
          -e LAKECTL_CREDENTIALS_SECRET_ACCESS_KEY=xxxxx
          -e LAKECTL_SERVER_ENDPOINT_URL=https://host.us-east-2.lakefscloud.io/ \
          --entrypoint lakectl treeverse/lakefs \
          repo list
```

*Bear in mind that if you are running lakeFS itself locally you will need to account for this in your networking configuration of the Docker container. That is to say, `localhost` to a Docker container is itself, not the host machine on which it is running.*

## Command Reference

### lakectl

A cli tool to explore manage and work with lakeFS

#### Synopsis

lakectl is a CLI tool allowing exploration and manipulation of a lakeFS environment.

It can be extended with plugins; see 'lakectl plugin --help' for more information.

```text
lakectl [flags]
```

#### Options

```text
      --base-uri string      base URI used for lakeFS address parse
  -c, --config string        config file (default is $HOME/.lakectl.yaml)
  -h, --help                 help for lakectl
      --log-format string    set logging output format
      --log-level string     set logging level (default "none")
      --log-output strings   set logging output(s)
      --no-color             don't use fancy output colors (default value can be set by NO_COLOR environment variable)
      --verbose              run in verbose mode
  -v, --version              version for lakectl
```

> [!NOTE]
>
> The `base-uri` option can be controlled with the `LAKECTL_BASE_URI` environment variable.

#### Example usage

```shell
$ export LAKECTL_BASE_URI="lakefs://my-repo/my-branch"
# Once set, use relative lakefs uri's:
$ lakectl fs ls /path
```

### lakectl actions

Manage Actions commands

#### Options

```text
  -h, --help   help for actions
```

### lakectl actions help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type actions help \[path to command\] for full details.

```text
lakectl actions help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl actions runs

Explore runs information

#### Options

```text
  -h, --help   help for runs
```

### lakectl actions runs describe

Describe run results

#### Synopsis

Show information about the run and all the hooks that were executed as part of the run

```text
lakectl actions runs describe <repository URI> <run_id> [flags]
```

#### Examples

```text
lakectl actions runs describe lakefs://my-repo 20230719152411arS0z6I
```

#### Options

```text
      --after string   show results after this value (used for pagination)
      --amount int     number of results to return. By default, all results are returned.
  -h, --help           help for describe
```

### lakectl actions runs help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type runs help \[path to command\] for full details.

```text
lakectl actions runs help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl actions runs list

List runs

#### Synopsis

List all runs on a repository optional filter by branch or commit

```text
lakectl actions runs list <repository URI> [--branch <branch>] [--commit <commit_id>] [flags]
```

#### Examples

```text
lakectl actions runs list lakefs://my-repo --branch my-branch --commit 600dc0ffee
```

#### Options

```text
      --branch string   show results for specific branch
      --commit string   show results for specific commit ID
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
  -h, --help            help for list
```

### lakectl actions validate

Validate action file

#### Synopsis

Tries to parse the input action file as lakeFS action file

```text
lakectl actions validate [flags]
```

#### Examples

```text
lakectl actions validate path/to/my/file
```

#### Options

```text
  -h, --help   help for validate
```

### lakectl annotate

List entries under a given path, annotating each with the latest modifying commit

```text
lakectl annotate <path URI> [flags]
```

#### Options

```text
      --first-parent   follow only the first parent commit upon seeing a merge commit
  -h, --help           help for annotate
  -r, --recursive      recursively annotate all entries under a given path or prefix
```

### lakectl auth

Manage authentication and authorization

#### Synopsis

Manage authentication and authorization including users, groups and policies

#### Options

```text
  -h, --help   help for auth
```

### lakectl auth groups

Manage groups

#### Options

```text
  -h, --help   help for groups
```

### lakectl auth groups create

Create a group

```text
lakectl auth groups create [flags]
```

#### Options

```text
  -h, --help        help for create
      --id string   Group identifier
```

### lakectl auth groups delete

Delete a group

```text
lakectl auth groups delete [flags]
```

#### Options

```text
  -h, --help        help for delete
      --id string   Group identifier
```

### lakectl auth groups help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type groups help \[path to command\] for full details.

```text
lakectl auth groups help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth groups list

List groups

```text
lakectl auth groups list [flags]
```

#### Options

```text
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl auth groups members

Manage group user memberships

#### Options

```text
  -h, --help   help for members
```

### lakectl auth groups members add

Add a user to a group

```text
lakectl auth groups members add [flags]
```

#### Options

```text
  -h, --help          help for add
      --id string     Group identifier
      --user string   Username (email for password-based users, default: current user)
```

### lakectl auth groups members help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type members help \[path to command\] for full details.

```text
lakectl auth groups members help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth groups members list

List users in a group

```text
lakectl auth groups members list [flags]
```

#### Options

```text
      --id string       Group identifier
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl auth groups members remove

Remove a user from a group

```text
lakectl auth groups members remove [flags]
```

#### Options

```text
  -h, --help          help for remove
      --id string     Group identifier
      --user string   Username (email for password-based users, default: current user)
```

### lakectl auth groups policies

Manage group policies

#### Synopsis

Manage group policies. Requires an external authorization server with matching support.

#### Options

```text
  -h, --help   help for policies
```

### lakectl auth groups policies attach

Attach a policy to a group

```text
lakectl auth groups policies attach [flags]
```

#### Options

```text
  -h, --help            help for attach
      --id string       User identifier
      --policy string   Policy identifier
```

### lakectl auth groups policies detach

Detach a policy from a group

```text
lakectl auth groups policies detach [flags]
```

#### Options

```text
  -h, --help            help for detach
      --id string       User identifier
      --policy string   Policy identifier
```

### lakectl auth groups policies help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type policies help \[path to command\] for full details.

```text
lakectl auth groups policies help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth groups policies list

List policies for the given group

```text
lakectl auth groups policies list [flags]
```

#### Options

```text
      --id string       Group identifier
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl auth help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type auth help \[path to command\] for full details.

```text
lakectl auth help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth policies

Manage policies

#### Options

```text
  -h, --help   help for policies
```

### lakectl auth policies create

Create a policy

```text
lakectl auth policies create [flags]
```

#### Options

```text
  -h, --help                        help for create
      --id string                   Policy identifier
      --statement-document string   JSON statement document path (or "-" for stdin)
```

### lakectl auth policies delete

Delete a policy

```text
lakectl auth policies delete [flags]
```

#### Options

```text
  -h, --help        help for delete
      --id string   Policy identifier
```

### lakectl auth policies help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type policies help \[path to command\] for full details.

```text
lakectl auth policies help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth policies list

List policies

```text
lakectl auth policies list [flags]
```

#### Options

```text
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl auth policies show

Show a policy

```text
lakectl auth policies show [flags]
```

#### Options

```text
  -h, --help        help for show
      --id string   Policy identifier
```

### lakectl auth users

Manage users

#### Options

```text
  -h, --help   help for users
```

### lakectl auth users aws-iam

Manage AWS IAM Role for lakeFS Users (External Principals API)

#### Options

```text
  -h, --help   help for aws-iam
```

### lakectl auth users aws-iam attach

Attach an IAM role to a lakeFS user

```text
lakectl auth users aws-iam attach [flags]
```

#### Options

```text
  -h, --help                  help for attach
      --id string             lakeFS Username (default: current user)
      --principal-id string   External principal ID (e.g., AWS IAM role ARN)
```

### lakectl auth users aws-iam detach

Detach an IAM Role from a lakeFS user

```text
lakectl auth users aws-iam detach [flags]
```

#### Options

```text
  -h, --help                  help for detach
      --id string             lakeFS Username (default: current user)
      --principal-id string   External principal ID (e.g., AWS IAM role ARN)
```

### lakectl auth users aws-iam help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type aws-iam help \[path to command\] for full details.

```text
lakectl auth users aws-iam help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth users aws-iam list

List all IAM roles attached to a lakeFS user

```text
lakectl auth users aws-iam list [flags]
```

#### Options

```text
      --id string       lakeFS Username (default: current user)
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl auth users aws-iam lookup

Lookup IAM Role attachments

```text
lakectl auth users aws-iam lookup [flags]
```

#### Options

```text
  -h, --help                  help for lookup
      --principal-id string   External principal ID (e.g., AWS IAM role ARN)
```

### lakectl auth users create

Create a user

```text
lakectl auth users create [flags]
```

#### Options

```text
  -h, --help        help for create
      --id string   Username
```

### lakectl auth users credentials

Manage user credentials

#### Options

```text
  -h, --help   help for credentials
```

### lakectl auth users credentials create

Create user credentials

```text
lakectl auth users credentials create [flags]
```

#### Options

```text
  -h, --help        help for create
      --id string   Username (email for password-based users, default: current user)
```

### lakectl auth users credentials delete

Delete user credentials

```text
lakectl auth users credentials delete [flags]
```

#### Options

```text
      --access-key-id string   Access key ID to delete
  -h, --help                   help for delete
      --id string              Username (email for password-based users, default: current user)
```

### lakectl auth users credentials help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type credentials help \[path to command\] for full details.

```text
lakectl auth users credentials help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth users credentials list

List user credentials

```text
lakectl auth users credentials list [flags]
```

#### Options

```text
      --id string       Username (email for password-based users, default: current user)
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl auth users delete

Delete a user

```text
lakectl auth users delete [flags]
```

#### Options

```text
  -h, --help        help for delete
      --id string   Username (email for password-based users)
```

### lakectl auth users groups

Manage user groups

#### Options

```text
  -h, --help   help for groups
```

### lakectl auth users groups help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type groups help \[path to command\] for full details.

```text
lakectl auth users groups help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth users groups list

List groups for the given user

```text
lakectl auth users groups list [flags]
```

#### Options

```text
      --id string       Username (email for password-based users)
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl auth users help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type users help \[path to command\] for full details.

```text
lakectl auth users help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth users list

List users

```text
lakectl auth users list [flags]
```

#### Options

```text
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl auth users policies

Manage user policies

#### Synopsis

Manage user policies. Requires an external authorization server with matching support.

#### Options

```text
  -h, --help   help for policies
```

### lakectl auth users policies attach

Attach a policy to a user

```text
lakectl auth users policies attach [flags]
```

#### Options

```text
  -h, --help            help for attach
      --id string       Username (email for password-based users)
      --policy string   Policy identifier
```

### lakectl auth users policies detach

Detach a policy from a user

```text
lakectl auth users policies detach [flags]
```

#### Options

```text
  -h, --help            help for detach
      --id string       Username (email for password-based users)
      --policy string   Policy identifier
```

### lakectl auth users policies help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type policies help \[path to command\] for full details.

```text
lakectl auth users policies help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl auth users policies list

List policies for the given user

```text
lakectl auth users policies list [flags]
```

#### Options

```text
      --effective       List all distinct policies attached to the user, including by group memberships
      --id string       Username (email for password-based users)
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl branch

Create and manage branches within a repository

#### Synopsis

Create delete and list branches within a lakeFS repository

#### Options

```text
  -h, --help   help for branch
```

### lakectl branch create

Create a new branch in a repository

```text
lakectl branch create <branch URI> -s <source ref URI> [flags]
```

#### Examples

```text
lakectl branch create lakefs://example-repo/new-branch -s lakefs://example-repo/main
```

#### Options

```text
  -h, --help            help for create
  -s, --source string   source branch uri
```

### lakectl branch delete

Delete a branch in a repository, along with its uncommitted changes (CAREFUL)

```text
lakectl branch delete <branch URI> [flags]
```

#### Examples

```text
lakectl branch delete lakefs://my-repo/my-branch
```

#### Options

```text
  -h, --help   help for delete
  -y, --yes    Automatically say yes to all confirmations
```

### lakectl branch help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type branch help \[path to command\] for full details.

```text
lakectl branch help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl branch list

List branches in a repository

```text
lakectl branch list <repository URI> [flags]
```

#### Examples

```text
lakectl branch list lakefs://my-repo
```

#### Options

```text
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl branch reset

Reset uncommitted changes - all of them, or by path

#### Synopsis

reset changes. There are three different ways to reset changes: 1. reset all uncommitted changes - reset lakefs://myrepo/main 2. reset uncommitted changes under specific path - reset lakefs://myrepo/main --prefix path 3. reset uncommitted changes for specific object - reset lakefs://myrepo/main --object path

```text
lakectl branch reset <branch URI> [--prefix|--object] [flags]
```

#### Examples

```text
lakectl branch reset lakefs://my-repo/my-branch
```

#### Options

```text
  -h, --help            help for reset
      --object string   path to object to be reset
      --prefix string   prefix of the objects to be reset
  -y, --yes             Automatically say yes to all confirmations
```

### lakectl branch revert

Given a commit, record a new commit to reverse the effect of this commit

#### Synopsis

The commits will be reverted in left-to-right order

```text
lakectl branch revert <branch URI> <commit ref to revert> [<more commits>...] [flags]
```

#### Examples

```text
lakectl branch revert lakefs://example-repo/example-branch commitA
              Revert the changes done by commitA in example-branch
              branch revert lakefs://example-repo/example-branch HEAD~1 HEAD~2 HEAD~3
              Revert the changes done by the second last commit to the fourth last commit in example-branch
```

#### Options

```text
      --allow-empty-commit   allow empty commit (revert without changes)
  -h, --help                 help for revert
  -m, --parent-number int    the parent number (starting from 1) of the mainline. The revert will reverse the change relative to the specified parent.
  -y, --yes                  Automatically say yes to all confirmations
```

### lakectl branch show

Show branch latest commit reference

```text
lakectl branch show <branch URI> [flags]
```

#### Examples

```text
lakectl branch show lakefs://my-repo/my-branch
```

#### Options

```text
  -h, --help   help for show
```

### lakectl branch-protect

Create and manage branch protection rules

#### Synopsis

Define branch protection rules to prevent direct changes. Changes to protected branches can only be done by merging from other branches.

#### Options

```text
  -h, --help   help for branch-protect
```

### lakectl branch-protect add

Add a branch protection rule

#### Synopsis

Add a branch protection rule for a given branch name pattern

```text
lakectl branch-protect add <repository URI> <pattern> [flags]
```

#### Examples

```text
lakectl branch-protect add lakefs://my-repo 'stable_*'
```

#### Options

```text
  -h, --help   help for add
```

### lakectl branch-protect delete

Delete a branch protection rule

#### Synopsis

Delete a branch protection rule for a given branch name pattern

```text
lakectl branch-protect delete <repository URI> <pattern> [flags]
```

#### Examples

```text
lakectl branch-protect delete lakefs://my-repo stable_*
```

#### Options

```text
  -h, --help   help for delete
```

### lakectl branch-protect help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type branch-protect help \[path to command\] for full details.

```text
lakectl branch-protect help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl branch-protect list

List all branch protection rules

```text
lakectl branch-protect list <repository URI> [flags]
```

#### Examples

```text
lakectl branch-protect list lakefs://my-repo
```

#### Options

```text
  -h, --help   help for list
```

### lakectl cherry-pick

Apply the changes introduced by an existing commit

#### Synopsis

Apply the changes from the given commit to the tip of the branch. The changes will be added as a new commit.

```text
lakectl cherry-pick <commit URI> <branch> [flags]
```

#### Examples

```text
lakectl cherry-pick lakefs://my-repo/600dc0ffee lakefs://my-repo/my-branch
```

#### Options

```text
  -h, --help                help for cherry-pick
  -m, --parent-number int   the parent number (starting from 1) of the cherry-picked commit. The cherry-pick will apply the change relative to the specified parent.
```

### lakectl commit

Commit changes on a given branch

```text
lakectl commit <branch URI> [flags]
```

#### Options

```text
      --allow-empty-commit    allow a commit with no changes
      --allow-empty-message   allow an empty commit message
  -h, --help                  help for commit
  -m, --message string        commit message
      --meta strings          key value pair in the form of key=value
```

### lakectl completion

Generate completion script

#### Synopsis

To load completions:

Bash:

```sh
$ source <(lakectl completion bash)
```

To load completions for each session, execute once: Linux:

```sh
$ lakectl completion bash > /etc/bash_completion.d/lakectl
```

MacOS:

```sh
$ lakectl completion bash > /usr/local/etc/bash_completion.d/lakectl
```

Zsh:

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

```sh
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
```

To load completions for each session, execute once:

```sh
$ lakectl completion zsh > "${fpath[1]}/_lakectl"
```

You will need to start a new shell for this setup to take effect.

Fish:

```sh
$ lakectl completion fish | source
```

To load completions for each session, execute once:

```sh
$ lakectl completion fish > ~/.config/fish/completions/lakectl.fish
```

```text
lakectl completion <bash|zsh|fish>
```

#### Options

```text
  -h, --help   help for completion
```

### lakectl config

Create/update local lakeFS configuration

```text
lakectl config [flags]
```

#### Options

```text
  -h, --help   help for config
```

### lakectl diff

Show changes between two commits, or the currently uncommitted changes

```text
lakectl diff <ref URI> [ref URI] [flags]
```

#### Examples

```text
    lakectl diff lakefs://example-repo/example-branch
    Show uncommitted changes in example-branch.

    lakectl diff lakefs://example-repo/main lakefs://example-repo/dev
    This shows the differences between master and dev starting at the last common commit.
    This is similar to the three-dot (...) syntax in git.
    Uncommitted changes are not shown.

    lakectl diff --two-way lakefs://example-repo/main lakefs://example-repo/dev
    Show changes between the tips of the main and dev branches.
    This is similar to the two-dot (..) syntax in git.
    Uncommitted changes are not shown.

    lakectl diff --two-way lakefs://example-repo/main lakefs://example-repo/dev$
    Show changes between the tip of the main and the dev branch, including uncommitted changes on dev.

    lakectl diff --prefix some/path lakefs://example-repo/main lakefs://example-repo/dev
    Show changes of objects prefixed with 'some/path' between the tips of the main and dev branches.
```

#### Options

```text
  -h, --help            help for diff
      --prefix string   Show only changes in the given prefix.
      --two-way         Use two-way diff: show difference between the given refs, regardless of a common ancestor.
```

### lakectl doctor

Run a basic diagnosis of the LakeFS configuration

```text
lakectl doctor [flags]
```

#### Options

```text
  -h, --help   help for doctor
```

### lakectl fs

View and manipulate objects

#### Options

```text
  -h, --help   help for fs
```

### lakectl fs cat

Dump content of object to stdout

```text
lakectl fs cat <path URI> [flags]
```

#### Options

```text
  -h, --help       help for cat
      --pre-sign   Use pre-signed URLs when downloading/uploading data (recommended) (default true)
```

### lakectl fs download

Download object(s) from a given repository path

```text
lakectl fs download <path URI> [<destination path>] [flags]
```

#### Options

```text
  -h, --help              help for download
      --no-progress       Disable progress bar animation for IO operations
  -p, --parallelism int   Max concurrent operations to perform (default 25)
      --part-size int     part size in bytes for multipart download (default 8388608)
      --pre-sign          Use pre-signed URLs when downloading/uploading data (recommended) (default true)
  -r, --recursive         recursively download all objects under path
```

### lakectl fs help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type fs help \[path to command\] for full details.

```text
lakectl fs help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl fs ls

List entries under a given tree

```text
lakectl fs ls <path URI> [flags]
```

#### Options

```text
  -h, --help        help for ls
  -r, --recursive   list all objects under the specified path
```

### lakectl fs presign

return a pre-signed URL for reading the specified object

```text
lakectl fs presign <path URI> [flags]
```

#### Options

```text
  -h, --help   help for presign
```

### lakectl fs rm

Delete object

```text
lakectl fs rm <path URI> [flags]
```

#### Options

```text
  -C, --concurrency int   max concurrent single delete operations to send to the lakeFS server (default 50)
  -h, --help              help for rm
  -r, --recursive         recursively delete all objects under the specified path
```

### lakectl fs stat

View object metadata

```text
lakectl fs stat <path URI> [flags]
```

#### Options

```text
  -h, --help       help for stat
      --pre-sign   Use pre-signed URLs when downloading/uploading data (recommended) (default true)
```

### lakectl fs upload

Upload a local file to the specified URI

```text
lakectl fs upload <path URI> [flags]
```

#### Options

```text
      --content-type string   MIME type of contents
  -h, --help                  help for upload
      --no-progress           Disable progress bar animation for IO operations
  -p, --parallelism int       Max concurrent operations to perform (default 25)
      --pre-sign              Use pre-signed URLs when downloading/uploading data (recommended) (default true)
  -r, --recursive             recursively copy all files under local source
  -s, --source string         local file to upload, or "-" for stdin
```

---

### lakectl fs stage

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Link an external object with a path in a repository

#### Synopsis

Link an external object with a path in a repository, creating an uncommitted change. The object location must be outside the repository's storage namespace

```text
lakectl fs stage <path URI> [flags]
```

#### Options

```text
      --checksum string       Object MD5 checksum as a hexadecimal string
      --content-type string   MIME type of contents
  -h, --help                  help for stage
      --location string       fully qualified storage location (i.e. "s3://bucket/path/to/object")
      --meta strings          key value pairs in the form of key=value
      --mtime int             Object modified time (Unix Epoch in seconds). Defaults to current time
      --size int              Object size in bytes
```

### lakectl fs update-metadata

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Update user metadata on the specified URI

```text
lakectl fs update-metadata <path URI> [flags]
```

#### Options

```text
  -h, --help               help for update-metadata
      --metadata strings   Metadata to set, in the form key1=value1,key2=value2
```

### lakectl gc

Manage the garbage collection policy

#### Options

```text
  -h, --help   help for gc
```

### lakectl gc delete-config

Deletes the garbage collection policy for the repository

```text
lakectl gc delete-config <repository URI> [flags]
```

#### Examples

```text
lakectl gc delete-config lakefs://my-repo
```

#### Options

```text
  -h, --help   help for delete-config
```

### lakectl gc get-config

Show the garbage collection policy for this repository

```text
lakectl gc get-config <repository URI> [flags]
```

#### Examples

```text
lakectl gc get-config lakefs://my-repo
```

#### Options

```text
  -h, --help   help for get-config
  -p, --json   get rules as JSON
```

### lakectl gc help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type gc help \[path to command\] for full details.

```text
lakectl gc help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl gc set-config

Set garbage collection policy JSON

#### Synopsis

Sets the garbage collection policy JSON. Example configuration file:

```json
{
  "default_retention_days": 21,
  "branches": [
    {
      "branch_id": "main",
      "retention_days": 28
    },
    {
      "branch_id": "dev",
      "retention_days": 14
    }
  ]
}
```

```text
lakectl gc set-config <repository URI> [flags]
```

#### Examples

```text
lakectl gc set-config lakefs://my-repo -f config.json
```

#### Options

```text
  -f, --filename string   file containing the GC policy as JSON
  -h, --help              help for set-config
```

---

### lakectl gc check-async

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Check status of (async) PrepareGarbageCollectionCommits

```text
lakectl gc check-async <repository URI> [flags]
```

#### Examples

```text
lakectl gc check-async --id <ID> lakefs://my-repo
```

#### Options

```text
  -h, --help        help for check-async
      --id string   ID returned from "gc prepare-async"
```

### lakectl gc prepare-async

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Runs (async) PrepareGarbageCollectionCommits on the repository

```text
lakectl gc prepare-async <repository URI> [flags]
```

#### Examples

```text
lakectl gc prepare-async lakefs://my-repo
```

#### Options

```text
  -h, --help   help for prepare-async
```

### lakectl help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type lakectl help \[path to command\] for full details.

```text
lakectl help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl identity

Show identity info

#### Synopsis

Show the info of the configured user in lakectl

```text
lakectl identity [flags]
```

#### Examples

```text
lakectl identity
```

#### Options

```text
  -h, --help   help for identity
```

### lakectl import

Import data from external source to a destination branch

```text
lakectl import --from <object store URI> --to <lakeFS path URI> [flags]
```

#### Options

```text
      --allow-empty-message   allow an empty commit message (default true)
      --from string           prefix to read from (e.g. "s3://bucket/sub/path/"). must not be in a storage namespace
  -h, --help                  help for import
  -m, --message string        commit message
      --meta strings          key value pair in the form of key=value
      --no-progress           switch off the progress output
      --to string             lakeFS path to load objects into (e.g. "lakefs://repo/branch/sub/path/")
```

### lakectl local

Sync local directories with lakeFS paths

#### Options

```text
  -h, --help   help for local
```

### lakectl local checkout

Sync local directory with the remote state.

```text
lakectl local checkout [directory] [flags]
```

#### Options

```text
      --all               Checkout given source branch or reference for all linked directories
  -h, --help              help for checkout
      --no-progress       Disable progress bar animation for IO operations
  -p, --parallelism int   Max concurrent operations to perform (default 25)
      --pre-sign          Use pre-signed URLs when downloading/uploading data (recommended) (default true)
  -r, --ref string        Checkout the given reference
  -y, --yes               Automatically say yes to all confirmations
```

### lakectl local clone

Clone a path from a lakeFS repository into a new directory.

```text
lakectl local clone <path URI> [directory] [flags]
```

#### Options

```text
      --gitignore         Update .gitignore file when working in a git repository context (default true)
  -h, --help              help for clone
      --no-progress       Disable progress bar animation for IO operations
  -p, --parallelism int   Max concurrent operations to perform (default 25)
      --pre-sign          Use pre-signed URLs when downloading/uploading data (recommended) (default true)
```

### lakectl local commit

Commit changes from local directory to the lakeFS branch it tracks.

```text
lakectl local commit [directory] [flags]
```

#### Options

```text
      --allow-empty-message   allow an empty commit message
      --force                 Commit changes even if remote branch includes uncommitted changes external to the synced path
  -h, --help                  help for commit
  -m, --message string        commit message
      --meta strings          key value pair in the form of key=value
      --no-progress           Disable progress bar animation for IO operations
  -p, --parallelism int       Max concurrent operations to perform (default 25)
      --pre-sign              Use pre-signed URLs when downloading/uploading data (recommended) (default true)
  -y, --yes                   Automatically say yes to all confirmations
```

### lakectl local help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type local help \[path to command\] for full details.

```text
lakectl local help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl local init

set a local directory to sync with a lakeFS path.

```text
lakectl local init <path URI> [directory] [flags]
```

#### Options

```text
      --force       Overwrites if directory already linked to a lakeFS path
      --gitignore   Update .gitignore file when working in a git repository context (default true)
  -h, --help        help for init
```

### lakectl local list

find and list directories that are synced with lakeFS.

```text
lakectl local list [directory] [flags]
```

#### Options

```text
  -h, --help   help for list
```

### lakectl local pull

Fetch latest changes from lakeFS.

```text
lakectl local pull [directory] [flags]
```

#### Options

```text
      --force             Reset any uncommitted local change
  -h, --help              help for pull
      --no-progress       Disable progress bar animation for IO operations
  -p, --parallelism int   Max concurrent operations to perform (default 25)
      --pre-sign          Use pre-signed URLs when downloading/uploading data (recommended) (default true)
```

### lakectl local status

show modifications (both remote and local) to the directory and the remote location it tracks

```text
lakectl local status [directory] [flags]
```

#### Options

```text
  -h, --help    help for status
  -l, --local   Don't compare against remote changes
```

### lakectl log

Show log of commits

#### Synopsis

Show log of commits for a given reference

```text
lakectl log <ref URI> [flags]
```

#### Examples

```text
lakectl log --dot lakefs://example-repository/main | dot -Tsvg > graph.svg
```

#### Options

```text
      --after string         show results after this value (used for pagination)
      --amount int           number of results to return. By default, all results are returned
      --dot                  return results in a dotgraph format
      --first-parent         follow only the first parent commit upon seeing a merge commit
  -h, --help                 help for log
      --limit                limit result just to amount. By default, returns whether more items are available.
      --no-merges            skip merge commits
      --objects strings      show results that contains changes to at least one path in that list of objects. Use comma separator to pass all objects together
      --prefixes strings     show results that contains changes to at least one path in that list of prefixes. Use comma separator to pass all prefixes together
      --show-meta-range-id   also show meta range ID
      --since string         show results since this date-time (RFC3339 format)
      --stop-at string       a Ref to stop at (included in results)
```

### lakectl merge

Merge &amp; commit changes from source branch into destination branch

#### Synopsis

Merge &amp; commit changes from source branch into destination branch

```text
lakectl merge <source ref> <destination ref> [flags]
```

#### Options

```text
      --allow-empty           Allow merge when the branches have the same content
      --allow-empty-message   allow an empty commit message (default true)
      --force                 Allow merge into a read-only branch or into a branch with the same content
  -h, --help                  help for merge
  -m, --message string        commit message
      --meta strings          key value pair in the form of key=value
      --squash                Squash all changes from source into a single commit on destination
      --strategy string       In case of a merge conflict, this option will force the merge process to automatically favor changes from the dest branch ("dest-wins") or from the source branch("source-wins"). In case no selection is made, the merge process will fail in case of a conflict
```

### lakectl plugin

Manage lakectl plugins

#### Synopsis

Provides utilities for managing lakectl plugins.

Plugins are standalone executable files that extend lakectl's functionality. lakectl discovers plugins by looking for executables in your PATH that are named with the prefix "lakectl-".

For example, an executable named "lakectl-myfeature" can be invoked as "lakectl myfeature \[args...\]".

Plugin Naming: - The executable must start with "lakectl-". - The part after "lakectl-" becomes the command name users type. (e.g., "lakectl-foo" -\> "lakectl foo") - The plugin name is used exactly as-is in the command. (e.g., "lakectl-foo-bar" -\> "lakectl foo-bar")

Installation: - Place your "lakectl-..." executable file (which may be any executable, e.g. a Python application) in a directory listed in your PATH. - Ensure the file has execute permissions.

Execution: - When you run "lakectl some-plugin arg1 --flag", lakectl searches for "lakectl-some-plugin" in PATH. - If found and executable, it runs the plugin, passing "arg1 --flag" as arguments. - The plugin inherits environment variables from lakectl. - Standard output, standard error, and the exit code of the plugin are propagated. - Built-in lakectl commands always take precedence over plugins.

Use "lakectl plugin list" to see all detected plugins and any warnings.

#### Options

```text
  -h, --help   help for plugin
```

### lakectl plugin help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type plugin help \[path to command\] for full details.

```text
lakectl plugin help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl plugin list

List available lakectl plugins

#### Synopsis

Scans the PATH for executables named "lakectl-\*" and lists the detected plugins.

```text
lakectl plugin list [flags]
```

#### Options

```text
  -h, --help   help for list
```

### lakectl repo

Manage and explore repos

#### Options

```text
  -h, --help   help for repo
```

### lakectl repo create

Create a new repository

```text
lakectl repo create <repository URI> <storage namespace> [flags]
```

#### Examples

```text
lakectl repo create lakefs://my-repo s3://my-bucket
```

#### Options

```text
  -d, --default-branch string   the default branch of this repository (default "main")
  -h, --help                    help for create
      --sample-data             create sample data in the repository
```

### lakectl repo delete

Delete existing repository

```text
lakectl repo delete <repository URI> [flags]
```

#### Examples

```text
lakectl repo delete lakefs://my-repo
```

#### Options

```text
  -h, --help   help for delete
  -y, --yes    Automatically say yes to all confirmations
```

### lakectl repo help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type repo help \[path to command\] for full details.

```text
lakectl repo help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl repo list

List repositories

```text
lakectl repo list [flags]
```

#### Options

```text
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

---

### lakectl repo create-bare

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Create a new repository with no initial branch or commit

```text
lakectl repo create-bare <repository URI> <storage namespace> [flags]
```

#### Examples

```text
lakectl repo create-bare lakefs://my-repo s3://my-bucket
```

#### Options

```text
  -d, --default-branch string   the default branch name of this repository (will not be created) (default "main")
  -h, --help                    help for create-bare
```

### lakectl show

See detailed information about an entity

#### Options

```text
  -h, --help   help for show
```

### lakectl show commit

See detailed information about a commit

```text
lakectl show commit <commit URI> [flags]
```

#### Options

```text
  -h, --help                 help for commit
      --show-meta-range-id   show meta range ID
```

### lakectl show help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type show help \[path to command\] for full details.

```text
lakectl show help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl tag

Create and manage tags within a repository

#### Synopsis

Create delete and list tags within a lakeFS repository

#### Options

```text
  -h, --help   help for tag
```

### lakectl tag create

Create a new tag in a repository

```text
lakectl tag create <tag URI> <commit URI> [flags]
```

#### Examples

```text
lakectl tag create lakefs://example-repo/example-tag lakefs://example-repo/2397cc9a9d04c20a4e5739b42c1dd3d8ba655c0b3a3b974850895a13d8bf9917
```

#### Options

```text
  -f, --force   override the tag if it exists
  -h, --help    help for create
```

### lakectl tag delete

Delete a tag from a repository

```text
lakectl tag delete <tag URI> [flags]
```

#### Options

```text
  -h, --help   help for delete
  -y, --yes    Automatically say yes to all confirmations
```

### lakectl tag help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type tag help \[path to command\] for full details.

```text
lakectl tag help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl tag list

List tags in a repository

```text
lakectl tag list <repository URI> [flags]
```

#### Examples

```text
lakectl tag list lakefs://my-repo
```

#### Options

```text
      --amount int      how many results to return (default 100)
      --after string    show results after this value (used for pagination)
      --prefix string   filter results by prefix (used for pagination)
  -h, --help            help for list
```

### lakectl tag show

Show tag's commit reference

```text
lakectl tag show <tag URI> [flags]
```

#### Options

```text
  -h, --help   help for show
```

---

## Undocumented commands

> [!WARNING]
>
> These commands are plumbing commands and for internal use only. Avoid using them unless you're *really* sure you know what you're doing, or have been in contact with lakeFS support!

### lakectl abuse

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Abuse a running lakeFS instance. See sub commands for more info.

#### Options

```text
  -h, --help   help for abuse
```

### lakectl abuse commit

Commits to the source branch repeatedly

```text
lakectl abuse commit <branch URI> [flags]
```

#### Options

```text
      --amount int     amount of commits to do (default 100)
      --gap duration   duration to wait between commits (default 2s)
  -h, --help           help for commit
```

### lakectl abuse create-branches

Create a lot of branches very quickly.

```text
lakectl abuse create-branches <source ref URI> [flags]
```

#### Options

```text
      --amount int             amount of things to do (default 1000000)
      --branch-prefix string   prefix to create branches under (default "abuse-")
      --clean-only             only clean up past runs
  -h, --help                   help for create-branches
      --parallelism int        amount of things to do in parallel (default 100)
```

### lakectl abuse help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type abuse help \[path to command\] for full details.

```text
lakectl abuse help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl abuse link-same-object

Link the same object in parallel.

```text
lakectl abuse link-same-object <branch URI> [flags]
```

#### Options

```text
      --amount int        amount of link object to do (default 1000000)
  -h, --help              help for link-same-object
      --key string        key used for the test (default "linked-object")
      --parallelism int   amount of link object to do in parallel (default 100)
```

### lakectl abuse list

List from the source ref

```text
lakectl abuse list <source ref URI> [flags]
```

#### Options

```text
      --amount int        amount of lists to do (default 1000000)
  -h, --help              help for list
      --parallelism int   amount of lists to do in parallel (default 100)
      --prefix string     prefix to list under (default "abuse/")
```

### lakectl abuse merge

Merge non-conflicting objects to the source branch in parallel

```text
lakectl abuse merge <branch URI> [flags]
```

#### Options

```text
      --amount int        amount of merges to perform (default 1000)
  -h, --help              help for merge
      --parallelism int   number of merges to perform in parallel (default 100)
```

### lakectl abuse random-delete

Delete keys from a file and generate random delete from the source ref for those keys.

```text
lakectl abuse random-delete <source ref URI> [flags]
```

#### Options

```text
      --amount int         amount of reads to do (default 1000000)
      --from-file string   read keys from this file ("-" for stdin)
  -h, --help               help for random-delete
      --parallelism int    amount of reads to do in parallel (default 100)
```

### lakectl abuse random-read

Read keys from a file and generate random reads from the source ref for those keys.

```text
lakectl abuse random-read <source ref URI> [flags]
```

#### Options

```text
      --amount int         amount of reads to do (default 1000000)
      --from-file string   read keys from this file ("-" for stdin)
  -h, --help               help for random-read
      --parallelism int    amount of reads to do in parallel (default 100)
```

### lakectl abuse random-write

Generate random writes to the source branch

```text
lakectl abuse random-write <branch URI> [flags]
```

#### Options

```text
      --amount int        amount of writes to do (default 1000000)
  -h, --help              help for random-write
      --parallelism int   amount of writes to do in parallel (default 100)
      --prefix string     prefix to create paths under (default "abuse/")
```

### lakectl bisect

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Binary search to find the commit that introduced a bug

#### Options

```text
  -h, --help   help for bisect
```

### lakectl bisect bad

Set 'bad' commit that is known to contain the bug

```text
lakectl bisect bad [flags]
```

#### Options

```text
  -h, --help   help for bad
```

### lakectl bisect good

Set current commit as 'good' commit that is known to be before the bug was introduced

```text
lakectl bisect good [flags]
```

#### Options

```text
  -h, --help   help for good
```

### lakectl bisect help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type bisect help \[path to command\] for full details.

```text
lakectl bisect help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

### lakectl bisect log

Print out the current bisect state

```text
lakectl bisect log [flags]
```

#### Options

```text
  -h, --help   help for log
```

### lakectl bisect reset

Clean up the bisection state

```text
lakectl bisect reset [flags]
```

#### Options

```text
  -h, --help   help for reset
```

### lakectl bisect run

Bisecting based on command status code

```text
lakectl bisect run <command> [flags]
```

#### Options

```text
  -h, --help   help for run
```

### lakectl bisect start

Start a bisect session

```text
lakectl bisect start <bad ref URI> <good ref URI> [flags]
```

#### Options

```text
  -h, --help   help for start
```

### lakectl bisect view

Current bisect commits

```text
lakectl bisect view [flags]
```

#### Options

```text
  -h, --help   help for view
```

### lakectl cat-hook-output

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Cat actions hook output

```text
lakectl cat-hook-output <repository URI> <run_id> <hook_id> [flags]
```

#### Examples

```text
lakectl cat-hook-output lakefs://my-repo 20230719152411arS0z6I my_hook_name
```

#### Options

```text
  -h, --help   help for cat-hook-output
```

### lakectl cat-sst

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Explore lakeFS .sst files

```text
lakectl cat-sst <sst-file> [flags]
```

#### Options

```text
      --amount int    how many records to return, or -1 for all records (default -1)
  -f, --file string   path to an sstable file, or "-" for stdin
  -h, --help          help for cat-sst
```

### lakectl docs

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

```text
lakectl docs [outfile] [flags]
```

#### Options

```text
  -h, --help   help for docs
```

### lakectl find-merge-base

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Find the commits for the merge operation

```text
lakectl find-merge-base <source ref URI> <destination ref URI> [flags]
```

#### Options

```text
  -h, --help   help for find-merge-base
```

### lakectl refs-dump

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Dumps refs (branches, commits, tags) to the underlying object store

```text
lakectl refs-dump <repository URI> [flags]
```

#### Options

```text
  -h, --help                     help for refs-dump
  -o, --output string            output filename (default stdout)
      --poll-interval duration   poll status check interval (default 3s)
      --timeout duration         timeout for polling status checks (default 1h0m0s)
```

### lakectl refs-restore

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Restores refs (branches, commits, tags) from the underlying object store to a bare repository

#### Synopsis

restores refs (branches, commits, tags) from the underlying object store to a bare repository.

This command is expected to run on a bare repository (i.e. one created with 'lakectl repo create-bare'). Since a bare repo is expected, in case of transient failure, delete the repository and recreate it as bare and retry.

```text
lakectl refs-restore <repository URI> [flags]
```

#### Examples

```text
aws s3 cp s3://bucket/_lakefs/refs_manifest.json - | lakectl refs-restore lakefs://my-bare-repository --manifest -
```

#### Options

```text
  -h, --help                     help for refs-restore
      --manifest refs-dump       path to a refs manifest json file (as generated by refs-dump). Alternatively, use "-" to read from stdin
      --poll-interval duration   poll status check interval (default 3s)
      --timeout duration         timeout for polling status checks (default 1h0m0s)
```

### lakectl usage

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Usage reports from lakeFS

#### Options

```text
  -h, --help   help for usage
```

### lakectl usage help

Help about any command

#### Synopsis

Help provides help for any command in the application. Simply type usage help \[path to command\] for full details.

```text
lakectl usage help [command] [flags]
```

#### Options

```text
  -h, --help   help for help
```

---

### lakectl usage summary

> [!WARNING]
>
> lakeFS plumbing command. Don't use unless you're *really* sure you know what you're doing.

Summary reports from lakeFS

```text
lakectl usage summary [flags]
```

#### Options

```text
  -h, --help   help for summary
```
