Skip to content

Commit

Permalink
crowdsec. Use runagent for cscli (#85)
Browse files Browse the repository at this point in the history
Separate section for the CLI
  • Loading branch information
DavidePrincipi authored Apr 8, 2024
1 parent 3448361 commit f5132b1
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions crowdsec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ Configuration
=============

Once installed, CrowdSec is already fully functional and protect many NS8 applications.

To get a list of protected applications, access the server using SSH and type:

::

cscli collection list

From the web interface you can configure:

Expand All @@ -36,3 +30,22 @@ disabling the ``Enable central API`` option under the ``Advanced`` section.

You can also connect your instance to `CrowdSec console <https://app.crowdsec.net>`_
by filling the ``Enroll the CrowdSec instance`` field.


Command-line interface
======================

The ``cscli`` command is a powerful command-line interface to access
advanced Crowdsec functions. To run ``cscli``, you have to enter the
application environment first. Type in a root shell the following command

::

runagent -m crowdsec1 bash

Then the ``cscli`` command becomes available. For instance, print the help
message with

::

cscli --help

0 comments on commit f5132b1

Please sign in to comment.