Quick Start
Get CloudSync running in under 5 minutes with this quick start guide.
Install
bash
npm install -g @cloudsync/clibash
yarn global add @cloudsync/clibash
pnpm add -g @cloudsync/cliLogin
bash
cloudsync loginThis opens your browser to authenticate with CloudSync.
Create a Workspace
bash
cloudsync init my-project
cd my-projectStart Syncing
bash
cloudsync syncThat's it! Your files are now syncing to the cloud.
SDK Quick Start
For programmatic access, install our SDK:
bash
npm install @cloudsync/sdktypescript
import { CloudSync } from '@cloudsync/sdk'
const client = new CloudSync({
apiKey: process.env.CLOUDSYNC_API_KEY
})
// Upload a file
await client.files.upload({
workspace: 'my-project',
path: '/documents/report.pdf',
file: fileBuffer
})
// List files
const files = await client.files.list({
workspace: 'my-project',
path: '/documents'
})
console.log(files)