File Store CLI
The evroc CLI provides commands for managing File Store instances. This reference covers the available commands and their usage.
Prerequisites
Section titled “Prerequisites”Before you use the File Store CLI commands, you’ll need:
- The evroc CLI installed and configured. See Install the evroc CLI for setup instructions
- An evroc account with appropriate IAM permissions for evroc Storage
- A project and region selected
File Store commands
Section titled “File Store commands”All File Store commands are accessed through the storage filestore subcommand (alias: fs).
List File Stores
Section titled “List File Stores”Display all File Stores in your current project and region.
evroc storage filestore listOutput:
my-filestoremy-other-filestoreGet detailed output:
evroc storage filestore list -o yamlFilter by label:
evroc storage filestore list --label-selector "env=production"Create a File Store
Section titled “Create a File Store”Create a new File Store in a specified zone.
evroc storage filestore create <filestore-id> --zone <zone>Example:
# Create a File Store in zone se-sto-aevroc storage filestore create my-filestore --zone se-sto-aOutput:
createdConstraints:
- File Store IDs must be unique within your project and region
- IDs can only contain lowercase letters, numbers, and hyphens
- IDs must start with a letter
- Maximum length: 63 characters
Get File Store details
Section titled “Get File Store details”Retrieve detailed information about a specific File Store.
evroc storage filestore get <filestore-id>Example:
evroc storage filestore get my-filestoreOutput:
kind: FileStoreapiVersion: storage/v1metadata: id: my-filestore uid: 8f4e2c9d-1a3b-4c5d-6e7f-8a9b0c1d2e3f project: my-project region: se-stospec: protocol: NFS placement: zone: se-sto-a nfs: version: V4.1status: status: Available protocol: NFS nfs: version: V4.1 endpoint: 10.100.0.10 exportPath: / placement: zone: se-sto-a conditions: - type: Ready status: "True" reason: Ready message: FileStore is ready for use lastTransitionTime: "2026-05-19T10:30:00Z"Delete a File Store
Section titled “Delete a File Store”Delete a File Store and all its data.
Warning: This action permanently deletes all data stored in the File Store. It can’t be undone.
evroc storage filestore delete <filestore-id>Example:
evroc storage filestore delete my-filestoreConfirmation:
Are you sure (y/n)?y<filestore-id> deletion requestedTo skip confirmation:
evroc storage filestore delete my-filestore --forceLabel management
Section titled “Label management”Add or remove labels on File Stores.
Add labels:
evroc storage filestore label my-filestore -a env=production -a team=backendOutput:
updatedRemove labels:
evroc storage filestore label my-filestore -r team -r envOutput:
updatedAdd and remove labels in one operation:
evroc storage filestore label my-filestore -a env=staging -r teamOutput:
updatedNote: You must specify at least one label to add (
-a) or remove (-r).
Common workflows
Section titled “Common workflows”Create and verify a File Store
Section titled “Create and verify a File Store”# Create the File Storeevroc storage filestore create my-store --zone se-sto-a
# Verify it's readyevroc storage filestore get my-storeList with filters
Section titled “List with filters”# List all File Storesevroc storage filestore list
# List only File Stores with specific labelevroc storage filestore list --label-selector "env=production"Clean up multiple File Stores
Section titled “Clean up multiple File Stores”# List all File Storesevroc storage filestore list
# Delete specific File Storesevroc storage filestore delete my-store-1 --forceevroc storage filestore delete my-store-2 --forceOutput formats
Section titled “Output formats”The CLI supports different output formats:
JSON:
evroc storage filestore get my-filestore -o jsonYAML:
evroc storage filestore get my-filestore -o yamlList (default for list command):
# Returns a simple list of File Store IDsevroc storage filestore listYAML (for detailed list output):
evroc storage filestore list -o yamlTroubleshooting CLI issues
Section titled “Troubleshooting CLI issues”Authentication errors
Section titled “Authentication errors”If you see authentication errors:
# Log in againevroc login
# Check current profileevroc config current-profileFile Store not found
Section titled “File Store not found”If you get “not found” errors:
- Verify the File Store ID is correct
- Ensure you’re in the correct project and region
- Check that the File Store hasn’t been deleted
# Check current contextevroc config current-projectevroc config current-profile
# List all File Stores to verify the IDevroc storage filestore listPermission denied
Section titled “Permission denied”If you see permission errors, ensure your IAM user has been granted the roles needed for file store access:
# Check your permissionsevroc iam rolebinding list-meRequired permissions:
storage.filestores.getstorage.filestores.liststorage.filestores.createstorage.filestores.deletestorage.filestores.update
See Also
Section titled “See Also”- Getting started - Create your first File Store
- Concepts - Understanding File Store architecture