alto sync command is used to upload files from the local application
directory to their respective file-stores.
For example, you build a website that has a file-store resource that hosts the
website content files. You would then use the
alto deploy command to deploy
the application infrastructure and the
alto sync command to upload the files.
The command takes a
instance to which the files should be uploaded, for
example dev or prod.
You can either sync specific file-stores or all files-stores in an application
by using the
--buckets options. These options are mutually
By default, the files are not publicly accessible. To make the uploaded files public, use the
$ alto sync <instance-name>
The instance to which the files should be uploaded.
Sync all file-stores in the application.
--buckets <list of file-stores>
Sync a given subset of file-stores in the application.
Make the uploaded files publicly accessible. By default, all files are not publicly accessible.
Specify the project working directory.
If not specified, project directory is assumed to be the current directory.