| 1 |
Quick Start |
| 2 |
=========== |
| 3 |
|
| 4 |
Assuming you have Python already, install the package: |
| 5 |
|
| 6 |
.. prompt:: bash |
| 7 |
|
| 8 |
pip install censys |
| 9 |
|
| 10 |
|
| 11 |
If you do not have pip installed, get it `here <https://pip.pypa.io/en/stable/installation/>`_. |
| 12 |
|
| 13 |
Configure your credentials: |
| 14 |
|
| 15 |
.. tabs:: |
| 16 |
|
| 17 |
.. tab:: Search API |
| 18 |
|
| 19 |
.. prompt:: bash |
| 20 |
|
| 21 |
censys config |
| 22 |
|
| 23 |
Or you can set the environment variables: |
| 24 |
|
| 25 |
.. prompt:: bash |
| 26 |
|
| 27 |
export CENSYS_API_ID=<your-api-id> |
| 28 |
export CENSYS_API_SECRET=<your-api-secret> |
| 29 |
|
| 30 |
Find your credentials on the `Account page <https://search.censys.io/account/api>`_. |
| 31 |
|
| 32 |
.. tab:: ASM API |
| 33 |
|
| 34 |
.. prompt:: bash |
| 35 |
|
| 36 |
censys asm config |
| 37 |
|
| 38 |
Or you can set the environment variables: |
| 39 |
|
| 40 |
.. prompt:: bash |
| 41 |
|
| 42 |
export CENSYS_ASM_API_KEY=<your-api-key> |
| 43 |
|
| 44 |
Find your credentials on the `Integrations page <https://app.censys.io/integrations>`_. |
| 45 |
|
| 46 |
Optionally, you can enable tab completion for the CLI by adding this line to your `~/.bashrc`, `~/.zshrc`, or equivalent. |
| 47 |
|
| 48 |
.. prompt:: bash |
| 49 |
|
| 50 |
eval "$(register-python-argcomplete censys)" |
| 51 |
|
| 52 |
.. note:: |
| 53 |
|
| 54 |
Please note that autocomplete is supported for field names in the `search` command. |