# Adding flags to API command

**URL:** <https://forum.rclone.org/t/adding-flags-to-api-command/18646>\
**Category:** Help and Support\
**Created:** [August 21, 2020, 4:49pm UTC](https://forum.rclone.org/t/adding-flags-to-api-command/18646 "2020-08-21T16:49:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WindfallProphet](https://forum.rclone.org/letter_avatar_proxy/v4/letter/w/91b2a8/32.png) [@WindfallProphet](https://forum.rclone.org/u/WindfallProphet)\
**Post date:** [August 21, 2020, 4:49pm UTC](https://forum.rclone.org/t/adding-flags-to-api-command/18646/1 "2020-08-21T16:49:36Z")

</div>

#### What is the problem you are having with rclone?

I'm trying to convert rclone commands to rclone API (rclone rc) commands

#### What is your rclone version (output from `rclone version`)

rclone v1.52.3

#### Which OS you are using and how many bits (eg Windows 7, 64 bit)

Linux 64bit

#### Which cloud storage system are you using? (eg Google Drive)

GDrive

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

```auto
rclone rc mount/mount fs=gdrive: mountpoint:/local/mountpoint --allow-other --log-level=INFO

```

#### A log from the command with the `-vv` flag

```auto
Fatal error: unknown flag: --allow-other

```

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [August 21, 2020, 4:54pm UTC](https://forum.rclone.org/t/adding-flags-to-api-command/18646/2 "2020-08-21T16:54:19Z")

</div>

You'll need [the latest beta](https://beta.rclone.org) for this then you can pass the flags as here:

Rclone's cloud storage systems as a file system with FUSE.

If no mountType is provided, the priority is given as follows: 1. mount 2.cmount 3.mount2

This takes the following parameters

- fs - a remote path to be mounted (required)
- mountPoint: valid path on the local machine (required)
- mountType: One of the values (mount, cmount, mount2) specifies the mount implementation to use
- mountOpt: a JSON object with Mount options in.
- vfsOpt: a JSON object with VFS options in.

Eg

```
rclone rc mount/mount fs=mydrive: mountPoint=/home/<user>/mountPoint
rclone rc mount/mount fs=mydrive: mountPoint=/home/<user>/mountPoint mountType=mount
rclone rc mount/mount fs=TestDrive: mountPoint=/mnt/tmp vfsOpt='{"CacheMode": 2}' mountOpt='{"AllowOther": true}'

```

The vfsOpt are as described in options/get and can be seen in the the  
"vfs" section when running and the mountOpt can be seen in the "mount" section.

```
rclone rc options/get
```

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [August 24, 2020, 4:54pm UTC](https://forum.rclone.org/t/adding-flags-to-api-command/18646/3 "2020-08-24T16:54:20Z")

</div>

Closed on August 24, 2020, 4:54pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
