Skip to main content

sync

The 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 stack 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 --all and --buckets options. These options are mutually exclusive.

By default, the files are not publicly accessible. To make the uploaded files public, use the --public option.

Usage

alto sync <stack-name>

Arguments

stack-name

The stack to which the files should be uploaded.

Options

--all

Sync all file-stores in the application.

Aliases: -a

Required: no

--buckets <list of file-stores>

Sync a given subset of file-stores in the application.

Aliases: -b

Required: no

--public

Make the uploaded files publicly accessible. By default, all files are not publicly accessible.

Required: no

--project-path

Specify the project working directory.

If not specified, project directory is assumed to be the current directory.

Aliases: --pp

Required: no

Ready to Get Started?

Get Started for Free
© 2022 Altostra, Inc.