Skip to main content
The files command manages files in NexusOne.

delete

The delete subcommand deletes a file by its unique ID.
string
required
Unique ID of the file to delete.
string
API key or the NX1_API_KEY variable.
string
YAML config file.
Shows help messages and exit.
string
API host.
Disables SSL verification.
string
Output format. Allowed values: json, yaml, or table.
string
Profile name from ~/.nx1/profiles.
integer
Requests when to timeout. Default is 30.
Verbose output.

get

The get subcommand gets the details of a file by its unique ID.
string
required
Unique ID of the file to delete.
string
API key or the NX1_API_KEY variable.
string
YAML config file.
Shows help messages and exit.
string
API host.
Disables SSL verification.
string
Output format. Allowed values: json, yaml, or table.
string
Profile name from ~/.nx1/profiles.
integer
Requests when to timeout. Default is 30.
Verbose output.

list

The list subcommand retrieves details of several files.
string
API key or the NX1_API_KEY variable.
string
YAML config file.
Shows help messages and exit.
string
API host.
Disables SSL verification.
string
Output format. Allowed values: json, yaml, or table.
string
Profile name from ~/.nx1/profiles.
integer
Requests when to timeout. Default is 30.
Verbose output.

upload

The upload subcommand uploads a local file.
string
required
Path to a local file.
string
Name of the uploaded file.
string
API key or the NX1_API_KEY variable.
string
YAML config file.
Shows help messages and exit.
string
API host.
Disables SSL verification.
string
Output format. Allowed values: json, yaml, or table.
string
Profile name from ~/.nx1/profiles.
integer
Requests when to timeout. Default is 30.
Verbose output.

upload-url

The upload-url subcommand uploads a file from a given source URL.
string
required
Public source URL to a file.
string
Name of the uploaded file.
string
API key or the NX1_API_KEY variable.
string
YAML config file.
Shows help messages and exit.
string
API host.
Disables SSL verification.
string
Output format. Allowed values: json, yaml, or table.
string
Profile name from ~/.nx1/profiles.
integer
Requests when to timeout. Default is 30.
Verbose output.