You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object Store Manipulator (osm: pronounced like `awesome`) - `curl` for cloud storage services. 🙌 `osm` can create & delete buckets and upload, download & delete files from buckets for AWS S3, DigitalOcean Spaces, Google Cloud Storage, Microsoft Azure storage and OpenStack Swift. Its single binary can be easily packaged instead of official python based clis inside Docker images.
9
+
Object Store Manipulator (osm: pronounced like `awesome`) - `curl` for cloud storage services. 🙌 `osm` can create & delete buckets and upload, download & delete files from buckets for AWS S3, AWS S3 compatible other storage services(i.e. Minio), DigitalOcean Spaces, Google Cloud Storage, Microsoft Azure storage and OpenStack Swift. Its single binary can be easily packaged instead of official python based clis inside Docker images.
10
10
11
11
## Install OSM
12
12
You can download and install a pre-built binary:
@@ -43,10 +43,10 @@ Available Commands:
43
43
config OSM configuration
44
44
help Help about any command
45
45
lc List containers
46
-
ls List container
46
+
ls List items in a container
47
47
mc Make container
48
48
pull Pull item from container
49
-
push Push item from container
49
+
push Push item to container
50
50
rc Remove container
51
51
rm Remove item from container
52
52
stat Stat item from container
@@ -59,10 +59,13 @@ Flags:
59
59
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
60
60
--log_dir string If non-empty, write log files in this directory
61
61
--logtostderr log to standard error instead of files
62
-
--osmconfig string Path to osm config (default "/home/tamal/.osm/config")
62
+
--osmconfig string Path to osm config (default "$HOME/.osm/config")
63
63
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
64
64
-v, --v Level log level for V logs
65
65
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
66
+
67
+
Use "osm [command] --help" for more information about a command.
68
+
66
69
```
67
70
68
71
### OSM Configuration
@@ -72,6 +75,9 @@ This allows providing commands one time for multiple subsequent operations with
72
75
# AWS S3:
73
76
osm config set-context osm-s3 --provider=s3 --s3.access_key_id=<key_id> --s3.secret_key=<secret_key> --s3.region=us-east-1
74
77
78
+
# TLS secure Minio server
79
+
osm config set-context osm-minio --provider=s3 --s3.access_key_id=<minio_access_key> --s3.secret_key=<minio_secret_key> --s3.endpoint=<minio_server_address> --s3.cacert_file=<root_ca_file_path>
80
+
75
81
# DigitalOcean Spaces:
76
82
osm config set-context osm-do --provider=s3 --s3.access_key_id=<key_id> --s3.secret_key=<secret_key> --s3.endpoint=nyc3.digitaloceanspaces.com
Object Store Manipulator (osm: pronounced like `awesome`) - `curl` for cloud storage services. 🙌 `osm` can create & delete buckets and upload, download & delete files from buckets for AWS S3, Google Cloud Storage, Microsoft Azure storage and OpenStack Swift. Its single binary can be easily packaged instead of official python based clis inside Docker images.
4
+
Object Store Manipulator (osm: pronounced like `awesome`) - `curl` for cloud storage services. 🙌 `osm` can create & delete buckets and upload, download & delete files from buckets for AWS S3, AWS S3 compatible other storage services(i.e. Minio), DigitalOcean Spaces, Google Cloud Storage, Microsoft Azure storage and OpenStack Swift. Its single binary can be easily packaged instead of official python based clis inside Docker images.
5
5
6
6
## Install OSM
7
7
You can download and install a pre-built binary:
8
8
```console
9
9
# Linux amd 64-bit:
10
-
wget -O osm https://cdn.appscode.com/binaries/osm/0.6.1/osm-linux-amd64 \
10
+
wget -O osm https://cdn.appscode.com/binaries/osm/0.6.3/osm-linux-amd64 \
11
11
&& chmod +x osm \
12
12
&& sudo mv osm /usr/local/bin/
13
13
14
14
# Linux 386 32-bit:
15
-
wget -O osm https://cdn.appscode.com/binaries/osm/0.6.1/osm-linux-386 \
15
+
wget -O osm https://cdn.appscode.com/binaries/osm/0.6.3/osm-linux-386 \
16
16
&& chmod +x osm \
17
17
&& sudo mv osm /usr/local/bin/
18
18
19
19
# Mac 64-bit
20
-
wget -O osm https://cdn.appscode.com/binaries/osm/0.6.1/osm-darwin-amd64 \
20
+
wget -O osm https://cdn.appscode.com/binaries/osm/0.6.3/osm-darwin-amd64 \
21
21
&& chmod +x osm \
22
22
&& sudo mv osm /usr/local/bin/
23
23
24
24
# Mac 32-bit
25
-
wget -O osm https://cdn.appscode.com/binaries/osm/0.6.1/osm-darwin-386 \
25
+
wget -O osm https://cdn.appscode.com/binaries/osm/0.6.3/osm-darwin-386 \
26
26
&& chmod +x osm \
27
27
&& sudo mv osm /usr/local/bin/
28
28
```
@@ -37,20 +37,24 @@ osm [command]
37
37
Available Commands:
38
38
config OSM configuration
39
39
help Help about any command
40
-
ls List container
40
+
lc List containers
41
+
ls List items in a container
41
42
mc Make container
42
43
pull Pull item from container
43
-
push Push item from container
44
+
push Push item to container
44
45
rc Remove container
45
46
rm Remove item from container
46
47
stat Stat item from container
47
48
version Prints binary version number.
48
49
49
50
Flags:
50
51
--alsologtostderr log to standard error as well as files
52
+
--enable-analytics Send usage events to Google Analytics (default true)
53
+
-h, --help help for osm
51
54
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
52
55
--log_dir string If non-empty, write log files in this directory
53
56
--logtostderr log to standard error instead of files
57
+
--osmconfig string Path to osm config (default "$HOME/.osm/config")
54
58
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
55
59
-v, --v Level log level for V logs
56
60
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
@@ -66,6 +70,12 @@ This allows providing commands one time for multiple subsequent operations with
66
70
# AWS S3:
67
71
osm config set-context osm-s3 --provider=s3 --s3.access_key_id=<key_id> --s3.secret_key=<secret_key> --s3.region=us-east-1
68
72
73
+
# TLS secure Minio server
74
+
osm config set-context osm-minio --provider=s3 --s3.access_key_id=<minio_access_key> --s3.secret_key=<minio_secret_key> --s3.endpoint=<minio_server_address> --s3.cacert_file=<root_ca_file_path>
75
+
76
+
# DigitalOcean Spaces:
77
+
osm config set-context osm-do --provider=s3 --s3.access_key_id=<key_id> --s3.secret_key=<secret_key> --s3.endpoint=nyc3.digitaloceanspaces.com
78
+
69
79
# Google Cloud Storage:
70
80
osm config set-context osm-gs --provider=google --google.json_key_path=<path_sa_file> --google.project_id=<my_project>
0 commit comments