# Miscellaneous commands

All other commands not previously covered.

---

### [ client ]

```text
client [<flags>]
    Run the velociraptor client

    --[no-]quiet          Do not output anything to stdout/stderr
    --[no-]require_admin  Ensure the user is an admin
```

---

### [ csv ]

```text
csv [<flags>] <files>...
    Convert a CSV file to another format

    --where=WHERE   A WHERE condition for the query
    --format=jsonl  Output format

Args:
  <files>  CSV files to parse
```

----


### [ debian ]

```text
debian server [<flags>]
    Create a server package from a server config file.

    --release=RELEASE  Specify the debian release number
    --output="."       Directory to store deb files in. (Default current
                       directory)
    --binary=BINARY    The binary to package
    --server_user="velociraptor"
                       The service user to run the packaged service as.
    --server_group="velociraptor"
                       The service group to run the packaged service as.
```

```text
debian client [<flags>]
    Create a client package from a client config file.

    --release=RELEASE  Specify the debian release number
    --output="."       Directory to store deb package in. (Default current
                       directory)
    --binary=BINARY    The binary to package
```

----

### [ decrypt ]

```text
decrypt [<flags>] <collection> [<output>]
    Decrypts an armoured collection file

    -p, --[no-]show_password  Show the password
        --format=json         Output format for csv output

Args:
  <collection>  A collection zip file to decrypt
  [<output>]    The filename to write the decrypted collection on
```

##### Notes

- This command does not support collection containers secured by the PGP or
  fixed password schemes.

- The zip file to decrypt needs to be specified with a full path, however use of
  the wildcard character (`*`) in the filename and path components for the
  collection argument is supported.

- The output filename can include a path component but non-existent folders will
  not be automatically created.

- If the zip files are secured with the server's X.509 certificate then you need
  to provide the config to the command using the `--config` flag so that it can
  access the server's private key. Otherwise you will see the error
  "GetPrivateKeyFromScope: No frontend configuration given" logged in the
  terminal.

##### See also

- [[ fuse container ]](/docs/cli/commands/fuse/),
  which allows you to mount collection containers instead of extracting them.

- [[ unzip ]](#-unzip-), which works similarly to `decrypt`
  but lists filenames or extracts the files from a collection container.

----

### [ frontend ]

```text
frontend [<flags>]
    Run the frontend and GUI.

    --[no-]disable_artifact_compression
                                Disables artifact compressions
    --[no-]minion               This is a minion frontend
    --node=NODE                 The name of a minion - selects from available frontend configurations (DEPRECATED: ignored)
    --[no-]disable-panic-guard  Disables the panic guard mechanism (not recommended)
```

----

### [ golden ]

```text
golden [<flags>] <directory>
    Run tests and compare against golden files.

    --filter=FILTER          A regex to filter the test files
    --env=ENV ...            Environment for the query.
    --[no-]testonly          Do not update the fixture.
    --[no-]disable_alarm     Do not terminate when deadlocked.
    --[no-]update_datastore  Normally golden tests run with the readonly datastore so as not to change the fixture. This flag allows updates to the fixtures.

Args:
  <directory>  Golden file directory path
```

----

### [ gui ]


```text
gui [<flags>]
    Bring up a lazy GUI.

    --datastore=DATASTORE  Path to a datastore directory (defaults to temp)
    --[no-]nobrowser       Do not bring up the browser
    --[no-]noclient        Do not bring up a client
```

For more information, see
[Deployment > Instant Velociraptor](/docs/deployment/#instant-velociraptor).

----

### [ help ]

```text
help [<command>...]
    Show help.
```

The `help` command displays usage information for Velociraptor
commands and subcommands. It behaves the same as the `-h` flag but
accepts the command name as a positional argument instead of a flag.

For example, the following two commands produce the same output:

```sh
velociraptor help artifacts collect
```

```sh
velociraptor artifacts collect -h
```

You can also use `help` with a command group to list its available
subcommands:

```sh
velociraptor help artifacts
```

Consult the [global flags](/docs/cli/flags/) page to see all
available flags and options.

---

### [ hunts reconstruct ]

```text
hunts reconstruct
    Reconstruct all hunt objects from logs
```

This command aims to recover lost hunts, which may occur in unusual situations
like the disk filling up unexpectedly, although its effectiveness depends on the
completeness of the audit logs. If the audit logs themselves were corrupted or
truncated, full recovery might not be possible using this method alone.

In recent releases (0.7.0+), the way hunt data is stored has been changed (e.g.
using a single snapshot file instead of many individual files) and disk space
checks are performed before writing. This is intended to reduce the corruption
occurring which would then necessitate use of this command. In version 0.7.0 and
later, the command will rebuild corrupted hunts into a `/recovery/...` directory
requiring manual movement of files after recovery.

The command can be run while the server is running or stopped.

###### Example

```sh
# first change to the velociraptor user to avoid messing up the datastore's filesystem ACLs
sudo -u velociraptor bash
velociraptor hunts reconstruct --config /path/to/server.config.yaml
```

---

### [ rpm ]

```text
rpm client [<flags>]
    Create a client package from a server config file.

    --release="A"    Rpm package release version
    --output="."     Directory to store rpms in. (Default current directory)
    --binary=BINARY  The binary to package
```

```text
rpm server [<flags>]
    Create a server package from a server config file.

    --release="A"              Rpm package release version
    --output="."               Directory to store rpms in. (Default current
                               directory)
    --binary=BINARY            The binary to package
    --server_user=SERVER_USER  The (existing) server user to run the packaged
                               service as.
    --server_group=SERVER_GROUP
                               The (existing) server group to run the packaged
                               service as.
```

----

### [ unzip ]

```text
unzip [<flags>] <file> [<members>]
    Unzip a container file

        --[no-]report_password  Log the X509 session password
        --where=WHERE           A WHERE condition for the query
        --dump_dir="."          Directory to dump output files.
        --format=json           Output format for csv output
    -l, --[no-]list             List files in the zip
    -p, --[no-]print            Dump out the files in the zip
        --password=PASSWORD     Use this password to extract ZIP

Args:
  <file>       Zip file to parse
  [<members>]  Members glob to extract
```

##### Notes

- Use of the wildcard character (`*`) in the filename and path components for
  the input file argument is supported.

- If the zip files are secured with the server's X509 certificate then you need
  to provide the config to the command using the `--config` flag so that it can
  access the server's private key. Otherwise you will see the error
  "GetPrivateKeyFromScope: No frontend configuration given" logged in the
  terminal.

- If `--list` or `--print` are specified then files will not be dumped.

- If `--dump_dir` is NOT specified then files will be extracted to the current
  directory.

##### See also

- [[ decrypt ]](#-decrypt-), which removes the encryption from collection containers without
  extracting the collection's files.

- [[ fuse container ]](/docs/cli/commands/fuse/),
  which allows you to mount collection containers instead of extracting them.

----

### [ version ]

```text
version
    Report the binary version and build information.
```

