Skip to main content
The aspect CLI uploads and downloads media, lists your library, mounts projects, and manages local transfers and storage. See installation to get the CLI and authentication to connect your account.

Help and global options

Running a command group, such as aspect transfer, without an action shows its help. Use --help --json to discover the actions and options in your installed version. See scripts and AI agents for output formats and exit codes.

Authentication

auth login accepts --api-key <key>. Prefer the interactive prompt for people and ASPECT_API_KEY for automation, so keys stay out of command arguments and shell history. When the Aspect desktop app is running and signed in, its account takes precedence over API keys. Otherwise, ASPECT_API_KEY takes precedence over the saved key. Read authentication for setup and account switching.

Browse workspaces and files

ls

With --json, the result is an array of entries with id, name, and type. A returned entry may also include size in bytes or updatedAt when available.

workspace

ASPECT_WORKSPACE overrides the saved default for ~. Explicit workspace URLs are useful in scripts because they do not depend on that default. See paths and workspaces.

Upload

Provide one or more local files or directories, followed by the remote destination. Directories are uploaded recursively. Existing names are skipped by default.
See uploads for destination behavior and conflict handling, and background transfers for tracking a detached upload.

Download

Download one asset, a directory, or a project. The local destination defaults to the current directory. Existing local filenames are skipped by default.
stream_proxy retrieves the H.264 MP4 proxy, up to 1080p, with AAC audio when the source has audio. preview retrieves the preview image. A directory or project download leaves out assets without the requested variant; selecting a single asset without that variant fails. See downloads for local folder behavior and proxies and previews for variant availability and filenames.

Background transfers

IDs come from upload --detach or download --detach. These commands track detached CLI transfers, not every transfer in your workspace. A failed or cancelled transfer makes status and wait exit with code 1 while still returning its snapshot on stdout. See background transfers for result fields and cancellation behavior.

Mounts

mount

Mount a project or directory as a local volume. --name <volume> sets the volume’s display name; the default is the project or directory name. Mounting a single asset is not supported.

unmount

Unmount by volume name or the same Aspect URL used to mount it. See mounts for platform prerequisites, local access, and writes.

Offline pins and storage settings

pin

Adding an existing pin returns that pin. If a file is available because a parent directory is pinned, remove the parent pin to unpin it. Wait for synchronization to complete before relying on a pin offline.

settings

settings list reports the current settings. settings set <setting> <size> changes one. Sizes require a unit: B, KB, MB, GB, or TB. Units are decimal, and fractional values such as 1.5TB are accepted. Settings persist on this computer and apply to its filesystem service. See cache and offline access for the difference between cached content and complete pins.

Status and diagnostics

status

Show authentication, the filesystem service, mounted volumes, an overall pin summary, and transfers together.

doctor

Check authentication, the CLI installation, the filesystem service, and the operating system’s mount prerequisites. doctor reports issues and suggested fixes; it does not install or repair prerequisites. A failing check returns exit code 1 with the checks on stdout.

daemon

The filesystem service starts automatically when a command needs it. Use these controls when troubleshooting. When the desktop app is signed in and owns the service, start, stop, and restart return daemon_owned_by_desktop; manage the service through the desktop app instead. See troubleshooting for authentication, mount, and transfer errors.

Updates and agent setup

upgrade

Install the latest CLI release. --allow-downgrade allows installing that release even if its version is older than the installed version. If the desktop app owns the filesystem service, the upgrade leaves restarting that service to the app.

skills add

Install the official aspect-cli skill for supported AI agents detected on this computer. This command requires Node.js and npx and installs at user scope. See scripts and AI agents.

Environment variables