Skip to Content
CLIErrors and updates

Handle errors and updates

Read the command’s message. The request ID appears in --json output, so use --json in scripts and keep the request ID when asking for help. Before running a write again only to see its request ID, check whether the first attempt was accepted. The CLI exits with a status that scripts can use without matching message text.

StatusMeaningNext step
0SuccessUse the returned result.
1Another local, network, or processing failureRead the message and check the connection or local file.
2Invalid command or inputCheck the command’s --help and correct the input.
3Sign-in requiredRun flashdrive login, then check whoami.
4Permission refusedCheck your account, selected drive, and granted actions.
5Resource not foundCheck the ID and selected workspace or drive.
6Conflict or a changed revisionRead the current version and reconcile the change.
7Rate limitedFollow the retry advice in the response.
8Payment or credits requiredReview Billing in the Console.
9Capacity or quota reachedReview the displayed limits and current usage.
10Service temporarily unavailableFollow the retry advice and retain the request ID.
11Client update requiredUpdate the CLI before retrying.
12Waiting timed outCheck the accepted operation or upload; do not assume it failed.
130Interrupted with Ctrl+CCheck accepted work before running the command again.

Check accepted work

flashdrive upload status UPLOAD_ID flashdrive operation status OPERATION_ID --wait

Use the ID the command returned and the original drive. A timeout of the waiting command does not cancel accepted service work.

Update the client

flashdrive update --check flashdrive update flashdrive --version

The update command uses the install method associated with the CLI. Keep any unsaved mounted work and check flashdrive mounts after an update or restart.

Use in a script

flashdrive --drive DRIVE_ID file list --json

--json returns structured output. Check the process status as well as the result. Retry a write only according to its returned advice and idempotency requirements; a response lost after acceptance is not permission to create the same content twice.