Examples
AWS CLI
Connect the AWS CLI to RustFS and perform basic object operations.
The AWS CLI is Amazon's official command-line tool for S3, and it works with RustFS via the --endpoint-url flag.
Install
Follow the official install guide, or on macOS:
brew install awscliConfigure
Set your access keys and region:
aws configureAWS Access Key ID [None]: <your-access-key>
AWS Secret Access Key [None]: <your-secret-key>
Default region name [None]: us-east-1
Default output format [None]: jsonPass your RustFS address with --endpoint-url on every command. Replace http://localhost:9000 with your server address. When --endpoint-url is set, the AWS CLI uses path-style addressing, which is what RustFS requires.
:::note
If you did not set credentials at install, the local-test default is rustfsadmin / rustfsadmin — never use it beyond a throwaway local trial.
:::
Verify
Create a bucket:
aws s3 mb s3://my-bucket --endpoint-url http://localhost:9000make_bucket: my-bucketUpload a file:
aws s3 cp /path/to/hello.txt s3://my-bucket/ --endpoint-url http://localhost:9000upload: ../path/to/hello.txt to s3://my-bucket/hello.txtList the bucket:
aws s3 ls s3://my-bucket --endpoint-url http://localhost:90002026-07-15 10:30:00 12 hello.txtNext steps
Build applications against RustFS with an S3 SDK, or manage objects with mc.