Ga naar inhoud

Cloudflare R2

raidrivecli add cloudflare --bucket <bucket> --account-id <account>

Als je opslag zonder opties toevoegt, vraagt de CLI om een Access Key ID, een Secret Access Key en het address (eindpunt) van de opslag.

$ raidrivecli add cloudflare --bucket mybucket --account-id myaccount
Access Key ID: <key>
Secret Access Key: ********
address: <address>

Je kunt Access Key ID of Secret Access Key ook als optie opgeven.

raidrivecli add cloudflare --bucket <bucket> --account-id <account> \
                           --access-key-id <key>
raidrivecli add cloudflare --bucket <bucket> --account-id <account> \
                           --access-key-id <key> \
                           --secret-access-key [secret]

Waarschuwing

Shell-opdrachten worden in de geschiedenis vastgelegd. Geef de optie --secret-access-key daarom bij voorkeur niet met een waarde op.

Als je geen koppelmap opgeeft, wordt de opslag gekoppeld aan een map onder /mnt, zoals /mnt/cloudflare. Gebruik de optie --mount-path om zelf een koppelmap op te geven.

raidrivecli add cloudflare --bucket mybucket \
                           --mount-path /myservices/cloudflare

Extra opties

--bucket <bucket>                       bucket
--endpoint <address>                    address (e.g. https://host.example.com)
--account-id <account>                  account id
--access-key-id <key>                   access key id
--secret-access-key [secret]            secret access key

Zie ook