The CLI can be accessed anywhere if installed globally:
{% tabs %} {% tab title="Yarn" %}
$ yarn global add secure-rm-cli{% endtab %}
{% tab title="npm" %}
$ npm install secure-rm-cli -g
{% endtab %} {% endtabs %}
If you only want to have it in a project, you can install it locally:
{% tabs %} {% tab title="Yarn" %}
$ yarn add secure-rm-cli{% endtab %}
{% tab title="npm" %}
$ npm install secure-rm-cli
{% endtab %} {% endtabs %}
$ secure-rm ./your-folder/*.jsPath can be a directory, a file or a glob pattern. Match files using the patterns the shell uses, like stars and stuff.
When you submit files, secure-rm ensures if you really want to delete the files:
And then you get a complete log of what happened:
secure-rm <PATHS> [OPTIONS]
PATHS:- one or multiple paths (e.g.
D:\data /d/data ./data/file.js ../../data) - supports glob patterns (e.g.
./*.js ./**/* @(pattern|pat*|pat?erN))
- one or multiple paths (e.g.
OPTIONS(flags):-f, --force: avoid checks if you want to use it in a shell or bash file;-h, --help: show CLI help, see below;-m, --mute: mutes the cli to the bare minimum, just the end messages;-s, --standard: text ID of the standard, default issecure. See them detailed below;-r, --retries: max retries if an error occur;-t, --table: show the standards table. See them detailed below;-v, --version: show CLI version;--no-globbing: disable file globbing.
Example:
secure-rm ./folder/*.js ./file.js -s gutmann -f
You can invoke the built-in help with secure-rm -h:
Check the different standards here:
{% page-ref page="../core/standards.md" %}


