edjx bucket update

Updates a specific bucket.

You must know the Bucket ID to execute this command.

Usage

edjx bucket update <bucket-UUID>
[-n, --name <bucket-name>]
[-p, --public <value>]

Options

Option Required Type Description

<bucket-UUID>

Yes

string

The bucket UUID to update.

-n, --name <bucket-name>

No

string

Name of the bucket to update.

-p, --public <value>

No

bool

Indicates that the contents of the bucket will be public (true) or private (false).
Default: false

You must include the n, --name or -p, --public flags when executing this command.

Global Flags

Option Required Type Description

-h, --help

No

Displays inline help for the command.

--config <file-location>

No

string

Location of client configuration file (default file path is $HOME/.edjx/.edjx.yaml).

Update the Access Level of a Bucket

To update the access level of a bucket:

  1. Set the organization to associate with all EDJX operations.

    edjx config organization -i
  2. View the buckets associated with the organization.

    edjx bucket list
    Total Buckets : 1
    Name    Bucket ID                             Number of Files  Size     Access Level  Track Versions  Organization  Created By  Created On                     Last Updated
    images  08670a14-ebd8-4158-8669-14e8a9c61f70  2                22.0 kB  Private       Enabled         blank_org     edjdocs     2022-06-23 09:50:52 -0700 MST  2022-06-23 10:19:50.575 -0700 MST
  3. Copy the Bucket ID of the bucket you want to update.

  4. Update the bucket as needed.

    edjx bucket update <bucket-UUID> -p <true|false>

    Sample Output

    root@edjx:~ # edjx bucket update 08670a14-ebd8-4158-8669-14e8a9c61f70 -p false
    Bucket updated successfully.