-
Notifications
You must be signed in to change notification settings - Fork 641
Description
Problem background: First time user, needing to ssh into an Ubuntu Lambda machine to do CLI based work.
Solutions tried: Tried to use MC command line docs, found here and here
Suggestions for documentation improvement, which currently only describe 3 Steps:
It would be nice if the docs went past Step 3 "Test the Connection" with:
Step 4: Create a Bucket
Step 5: Copy a local file to the bucket
Step 6: Copy an object from the bucket to a local drive.
During step 5, a newbie might forget to include the bucket name. The error returned is: "Unable to upload. Bucket should not be empty". This was confusing, and could easily be interpreted as the bucket has no object in it, it is empty. A better wording would be: "Error: Bucket name not specified"
Additionally, for command line errors, it would be helpful and convenient if a usage line accompanies the error message, with an example of how the command line should be constructed. See examples below.
Below is what the MIN ai-chatbot returned as steps I mentioned above
-
Creating a bucket: USAGE: mc mb <your_minio_alias>/<new_bucket_name>/
Example: mc mb myminio/newbucket/ -
Copying a local file to the created bucket: USAGE: mc cp <local_file_path> <your_minio_alias>/<new_bucket_name>/
Example: mc cp /path/to/local/file.txt myminio/newbucket/ -
Copying a file from the bucket to the local filesystem: USAGE: mc cp <your_minio_alias>/<new_bucket_name>/<file_name> <local_directory>
Example: mc cp myminio/newbucket/file.txt /path/to/local/directory/
DIFFERENT TOPIC
It probably would be more professional and self-explanatory if the in the command line --help results, the terminology followed the examples above. For instance, for mc put --help the returned text used words like play/mybucket . It is not at all clear nor defined what play means.
DIFFERENT TOPIC
mc ls --help contains no examples of how to list files in a minio local deployment. They're all s3/ deployments. What if the user (me) is not using S3 ?
DIFFERENT TOPIC
Why does mc ls list local files? I thought because it is a mc command it would list the deployment buckets, files, etc. It becomes confusing. It should probably return an error, that no deployment and bucket was specified. And give a USAGE example when that error happens. If mc ls and unix's own ls do the same thing, then......why?
It probably would be a good idea to make a pass through the --help of all the mc command and apply the notes above, if desired. Some have examples, some don't. Consistency would be an excellent addition. :-)