Releases: code42/code42cli
v1.4.2
Fixed
-
Bug where some CSV outputs on Windows would have an extra newline between the rows.
-
Issue where outputting or sending an alert or file-event with a timestamp without
decimals would error. -
A performance issue with the
code42 departing-employee bulk addcommand.
Changed
-
code42 alert-rules listnow outputs via a pager when results contain more than 10 rules. -
code42 cases listnow outputs via a pager when results contain more than 10 cases.
v1.4.1
v1.4.0
1.4.0 - 2021-03-09
Added
-
code42cli.extensionsmodule exposessdk_optionsdecorator andscriptgroup for writing custom extension scripts
using the Code42 CLI. -
code42 devices listoptions:--include-legal-hold-membershipprints the legal hold matter name and ID for any active device on legal hold--include-total-storageprints the backup archive count and total storage
v1.3.1
1.3.1 - 2021-02-25
Changed
- Command options for
profile update:-n--nameis not required, and if omitted will use the default profile.-s--serverand-u--usernameare not required and can be updated independently now.- Example:
code42 profile update -s 1.2.3.4:1234
v1.3.0
Fixed
- Issue where
code42 alert-rules bulk addwould show as successful when adding users to a non-existent alert rule.
Added
- New choice
TLS-TCPfor--protocoloption used bysend-tocommands:code42 security-data send-tocode42 alerts send-tocode42 audit-logs send-to
for more securely transporting data. Included are new flags:--certs--ignore-cert-validation
Changed
- The error text in cases command when:
cases createsets a name that already exists in the system.cases createsets a description that has more than 250 characters.cases updatesets a description that has more than 250 characters.cases file-events addis performed on an already closed case.cases file-events addsets an event id that is already added to the case.cases file-events removeis performed on an already closed case.
v1.2.0
Added
-
The
devicescommand is added. Included are:devices deactivateto deactivate a single device.devices reactivateto reactivate a single device.devices showto retrieve detailed information about a device.devices listto retrieve info about many devices, including device settings.devices list-backup-setsto retrieve detailed info about device backup sets.devices bulk deactivateto deactivate a list of devices.devices bulk reactivateto reactivate a list of devices.devices bulk generate-templateto create a blank CSV file for bulk commands.
-
code42 departing-employee listcommand. -
code42 high-risk-employee listcommand. -
code42 casescommands:createto create a new case.updateto update case details.exportto download a case summary as a PDF file.listto view all cases.showto view the details of a particular case.
-
code42 cases file-eventscommands:addto add an event to a case.removeto remove an event from a case.listto view all events associated with a case.
Changed
-
The error text when removing an employee from a detection list now references the employee
by ID rather than the username. -
Improved help text for date option arguments.
v1.1.0
Fixed
- Issue where
code42 profile deletewas allowed without giving aprofile_nameeven
though deleting the default profile is not allowed.
Added
code42 audit-logscommands:searchto search for audit-logs.send-toto send audit-logs to server.
Changed
-
profile_nameargument is now required forcode42 profile delete, as it was meant to be. -
The
--advanced-queryoption onalerts searchandsecurity-data (search|send-to)commands has been updated:- It can now accept the query as a JSON string or as the path to a file containing the JSON query.
- It can be used with the
--use-checkpoint/-coption.
-
Now, when adding a cloud alias to a detection list user, such as during
departing-employee add, it will remove the existing cloud alias if one exists.- Before, it would error and the cloud alias would not get added.
v1.0.0
1.0.0 - 2020-08-31
Fixed
-
Bug where
code42 legal-hold showwould error when terminal was too small. -
Fixed bug in
departing_employee bulk addcommand that allowed invalid dates to be passed without validation.
Changed
-
The follow commands now print a nicer error message when trying to remove a user who is not on the list:
code42 departing-employee removecode42 high-risk-employee removecode42 alert-rules remove-user
-
-i(--incremental) has been removed, use-c(--use-checkpoint) with a string name for the checkpoint instead. -
The code42cli has been migrated to the click framework. This brings:
- BREAKING CHANGE: Commands that accept multiple values for the same option now must have the option flag provided before each value:
use--option value1 --option value2instead of--option value1 value2(which was previously possible). - Cosmetic changes to error messages, progress bars, and help message formatting.
- BREAKING CHANGE: Commands that accept multiple values for the same option now must have the option flag provided before each value:
-
The
printcommand on thesecurity-dataandalertscommand groups has been replaced with thesearchcommand.
This was a name change only, all other functionality remains the same. -
A profile created with the
--disable-ssl-errorsflag will now correctly not verify SSL certs when making requests. A warning message is printed
each time the CLI is run with a profile configured this way, as it is not recommended. -
The
pathpositional argument for bulkgenerate-templatecommands is now an option (--p/-p). -
Below
searchsubcommands accept argument--format/-fto display result in formatscsv,table,json,raw-json:- Default output format is changed to
tableformat fromraw-json, returns a paginated response.
All properties would be displayed by default except when using-f table.
Pass--include-allwhen usingtableto view all non-nested top-level properties. code42 alerts searchcode42 security-data searchcode42 security-data saved-search listcode42 legal-hold listcode42 alert-rules list
- Default output format is changed to
Added
-
--or-queryoption added tosecurity-data searchandalerts searchcommands which combines the provided filter arguments into an 'OR' query instead of the default 'AND' query. -
--passwordoption added toprofile createandprofile updatecommands, enabling creating profiles while bypassing the interactive password prompt. -
Profiles can now save multiple alert and file event checkpoints. The name of the checkpoint to be used for a given query should be passed to
-c(--use-checkpoint). -
-y/--assume-yesoption added toprofile deleteandprofile delete-allcommands to not require interactive prompt. -
Below subcommands accept argument
--format/-fto display result in formatscsv,table,json,formatted-json:code42 alert-rules listcode42 legal-hold listcode42 legal-hold showcode42 security-data saved-search list
Removed
- The
write-tocommand forsecurity-dataandalertscommand groups.