files command manages files in NexusOne.
delete
The delete subcommand deletes a file by its unique ID.
Argument
Argument
string
required
Unique ID of the file to delete.
Global options
Global options
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.
Argument
Argument
string
required
Unique ID of the file to delete.
Global options
Global options
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.
Global options
Global options
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.
Argument
Argument
string
required
Path to a local file.
Option
Option
string
Name of the uploaded file.
Global options
Global options
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.
Argument
Argument
string
required
Public source URL to a file.
Option
Option
string
Name of the uploaded file.
Global options
Global options
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.

