Crates.io | oli |
lib.rs | oli |
version | |
source | src |
created_at | 2022-07-08 01:13:24.277593+00 |
updated_at | 2025-02-24 07:01:31.525485+00 |
description | OpenDAL Command Line Interface |
homepage | https://opendal.apache.org/ |
repository | https://github.com/apache/opendal |
max_upload_size | |
id | 621556 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
oli
stands for OpenDAL Command Line Interface. It aims to provide a unified and user-friendly way to manipulate data stored in various storage service.
oli
oli
provide basic sub-commands like oli ls
, oli cat
, oli stat
, oli cp
and oli rm
, just like what you use on your local filesystem.
oli
oli
could be installed by cargo
:
cargo install oli
cargo
is the Rust package manager.cargo
could be installed by following the Installation from Rust official website.
oli
Profileoli
requires a config file to work, it should be:
~/.config/oli/config.toml
on Linux~/Library/Application Support/oli/config.toml
on macOSC:\Users\<UserName>\AppData\Roaming\oli\config.toml
on WindowsThe content of config.toml
should follow these pattern:
[profiles.<profile_name>]
configuration_key1 = "value1"
configuration_key2 = "value2"
[profiles.<another_profile_name>]
configuration_key3 = "value3"
configuration_key4 = "value4"
Here is an example of config.toml
:
[profiles.s3]
type = "s3"
root = "/assets"
bucket = "<bucket>"
region = "<region>"
endpoint = "https://s3.amazonaws.com"
access_key_id = "<access_key_id>"
secret_access_key = "<secret_access_key>"
[profiles.r2]
type = "s3"
root = "/assets"
bucket = "<bucket>"
region = "auto"
endpoint = "https://<account_id>.r2.cloudflarestorage.com"
access_key_id = "<access_key_id>"
secret_access_key = "<secret_access_key>"
For different services, you could find the configuration keys in the corresponding service document.
oli
to upload file to AWS S3oli cp ./update-ecs-loadbalancer.json s3:/update-ecs-loadbalancer.json
oli ls s3:/
# fleet.png
# update-ecs-loadbalancer.json
oli
copy file from S3 to R2oli cp s3:/fleet.png r2:/fleet.png
oli ls r2:/
# fleet.png
oli
Contribution is not only about code, but also about documentation, examples, and so on! 🚀
If you have any questions or suggestions about oli
, please feel free to open an issue on GitHub.
As oli
is a part of Apache OpenDAL, you should follow the CONTRIBUTION documentation. There are still lots works to do with oli
, you could track them on this GitHub Issue.
The first and most prominent mentions must use the full form: Apache OpenDALâ„¢ of the name for any individual usage (webpage, handout, slides, etc.) Depending on the context and writing style, you should use the full form of the name sufficiently often to ensure that readers clearly understand the association of both the OpenDAL project and the OpenDAL software product to the ASF as the parent organization.
For more details, see the Apache Product Name Usage Guide.
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.