Skip to main content
Aliases: filestorage, fs

Subcommands

  • list — List file storage resources
  • get — Get file storage details
  • create — Create a new file storage resource
  • update — Update an existing file storage resource
  • delete — Delete a file storage resource

list

List file storage resources, optionally filtered by organization, project, or region.
nscale filestorage list [flags]

Flags

FlagDescription
--org stringOrganization ID
--project stringProject ID
--region stringRegion ID
--jsonOutput in JSON format

Example

nscale filestorage list --org <org-id> --region <region-id>

get

Get details for a specific file storage resource in JSON format.
nscale filestorage get --id <storage-id> --org <org-id>

Flags

FlagDescription
--id stringFile storage ID
--org stringOrganization ID

create

Create a new file storage resource. Accepts input from a JSON file or stdin.
nscale filestorage create [flags]

Flags

FlagDescription
-f, --file stringPath to a JSON file
--stdinRead JSON from standard input
--dry-runPreview the request payload without persisting
-y, --yesAutomatically confirm creation

Examples

nscale filestorage create --file storage.json
nscale filestorage create --stdin < storage.json
cat storage.json | nscale filestorage create --stdin

update

Update an existing file storage resource.
nscale filestorage update --id <storage-id> [flags]

Flags

FlagDescription
--id stringFile storage ID
--org stringOrganization ID
-f, --file stringPath to a JSON file
--stdinRead JSON from standard input
--dry-runPreview the request payload without persisting
-y, --yesAutomatically confirm update

Examples

nscale filestorage update --id <storage-id> --file storage.json
nscale filestorage update --id <storage-id> --stdin < storage.json

delete

Delete an existing file storage resource.
nscale filestorage delete --id <storage-id> --org <org-id> [flags]

Flags

FlagDescription
--id stringFile storage ID
--org stringOrganization ID
--dry-runPreview the request payload without persisting
-y, --yesAutomatically confirm deletion

Example

nscale filestorage delete --id <storage-id> --org <org-id> --yes