files command manages files in NexusOne.
delete
The delete subcommand deletes a file by its unique ID.
Argument
Argument
file_idstringrequired: Unique ID of the file to delete
Global options
Global options
--api-keystringoptional: API key or theNX1_API_KEYvariable.--config-filestringoptional: YAML config file.--help-hoptional: Shows help messages and exit.--hoststringoptional: API host.--no-verify-ssloptional: Disables SSL verification.--output-ooptional: Output format. Allowed values:json,yaml, ortable.--profile-pstringoptional: Profile name from~/.nx1/profiles.--timeoutintegeroptional: Requests when to timeout. Default is30.--verbose-voptional: Verbose output.
get
The get subcommand gets the details of a file by its unique ID.
Argument
Argument
file_idstringrequired: Unique ID of the file to delete.
Global options
Global options
--api-keystringoptional: API key or theNX1_API_KEYvariable.--config-filestringoptional: YAML config file.--help-hoptional: Shows help messages and exit.--hoststringoptional: API host.--no-verify-ssloptional: Disables SSL verification.--output-ooptional: Output format. Allowed values:json,yaml, ortable.--profile-pstringoptional: Profile name from~/.nx1/profiles.--timeoutintegeroptional: Requests when to timeout. Default is30.--verbose-voptional: Verbose output.
list
The list subcommand retrieves details of several files.
Global options
Global options
--api-keystringoptional: API key or theNX1_API_KEYvariable.--config-filestringoptional: YAML config file.--help-hoptional: Shows help messages and exit.--hoststringoptional: API host.--no-verify-ssloptional: Disables SSL verification.--output-ooptional: Output format. Allowed values:json,yaml, ortable.--profile-pstringoptional: Profile name from~/.nx1/profiles.--timeoutintegeroptional: Requests when to timeout. Default is30.--verbose-voptional: Verbose output.
upload
The upload subcommand uploads a local file.
Argument
Argument
file_pathstringrequired: Path to a local file.
Option
Option
--namestringoptional: Name of the uploaded file.
Global options
Global options
--api-keystringoptional: API key or theNX1_API_KEYvariable.--config-filestringoptional: YAML config file.--help-hoptional: Shows help messages and exit.--hoststringoptional: API host.--no-verify-ssloptional: Disables SSL verification.--output-ooptional: Output format. Allowed values:json,yaml, ortable.--profile-pstringoptional: Profile name from~/.nx1/profiles.--timeoutintegeroptional: Requests when to timeout. Default is30.--verbose-voptional: Verbose output.
upload-url
The upload-url subcommand uploads a file from a given source URL.
Argument
Argument
urlstringrequired: Public source URL to a file.
Option
Option
--namestringoptional: Name of the uploaded file.
Global options
Global options
--api-keystringoptional: API key or theNX1_API_KEYvariable.--config-filestringoptional: YAML config file.--help-hoptional: Shows help messages and exit.--hoststringoptional: API host.--no-verify-ssloptional: Disables SSL verification.--output-ooptional: Output format. Allowed values:json,yaml, ortable.--profile-pstringoptional: Profile name from~/.nx1/profiles.--timeoutintegeroptional: Requests when to timeout. Default is30.--verbose-voptional: Verbose output.