blob: 2e5d089e443cc0357b601c691ef472d2885b47df [file] [log] [blame]
hilata6ee6e072014-04-20 17:10:18 -05001nfdc
2====
3
Davide Pesavento543b1522024-06-25 17:00:32 -04004Synopsis
hilata6ee6e072014-04-20 17:10:18 -05005--------
6
Davide Pesavento543b1522024-06-25 17:00:32 -04007| **nfdc** *COMMAND* [*ARGUMENTS*]...
8| **nfdc** **help** [*COMMAND*]
9| **nfdc** [**-h**\|\ **\--help**]
10| **nfdc** **-V**\|\ **\--version**
11| **nfdc** **-f**\|\ **\--batch** *file*
12
13Description
Junxiao Shi15902ef2017-08-11 22:58:35 +000014-----------
hilata6ee6e072014-04-20 17:10:18 -050015
Davide Pesavento543b1522024-06-25 17:00:32 -040016:program:`nfdc` is a command-line tool to manage a running instance of NFD.
Junxiao Shi15902ef2017-08-11 22:58:35 +000017
Davide Pesavento543b1522024-06-25 17:00:32 -040018All features of :program:`nfdc` are organized into subcommands.
19To print a list of all subcommands, run ``nfdc`` without arguments.
20To show how to use a subcommand, run ``nfdc help`` followed by the subcommand name.
21
22Options
Junxiao Shi15902ef2017-08-11 22:58:35 +000023-------
Junxiao Shi15902ef2017-08-11 22:58:35 +000024
Davide Pesavento543b1522024-06-25 17:00:32 -040025.. option:: <COMMAND>
26
27 A subcommand name. It usually contains a noun and a verb.
28
29.. option:: <ARGUMENTS>
30
Junxiao Shi15902ef2017-08-11 22:58:35 +000031 Arguments to the subcommand.
32
Davide Pesavento543b1522024-06-25 17:00:32 -040033.. option:: -h, --help
34
Davide Pesaventoe0bae0f2018-02-17 22:07:52 -050035 Print a list of available subcommands and exit.
Junxiao Shi15902ef2017-08-11 22:58:35 +000036
Davide Pesavento543b1522024-06-25 17:00:32 -040037.. option:: -V, --version
38
Davide Pesaventoe0bae0f2018-02-17 22:07:52 -050039 Show version information and exit.
Junxiao Shi15902ef2017-08-11 22:58:35 +000040
Davide Pesavento543b1522024-06-25 17:00:32 -040041.. option:: -f <file>, --batch <file>
Alexander Afanasyevc414ca52021-06-09 12:15:19 -040042
Davide Pesavento543b1522024-06-25 17:00:32 -040043 Process the list of arguments specified in *file* as if they would have appeared on
44 the command line.
45 When running a sequence of commands in rapid succession from a script, this option
46 ensures that the commands are properly timestamped and can therefore be accepted
47 by NFD.
Alexander Afanasyevc414ca52021-06-09 12:15:19 -040048
Davide Pesavento543b1522024-06-25 17:00:32 -040049 When necessary, arguments should be escaped using a backslash (``\``), single quotes
50 (``'``), or double quotes (``"``).
51 If any of the commands fail, processing will stop at that command and :program:`nfdc`
52 will exit with error code 2.
53 Empty lines and lines that start with the ``#`` character are ignored.
54 Note that the batch file does not support empty string arguments (``""`` or ``''``),
55 even if they would normally be supported on the regular command line of :program:`nfdc`.
56
57Examples
Junxiao Shi15902ef2017-08-11 22:58:35 +000058--------
Davide Pesavento543b1522024-06-25 17:00:32 -040059
60``nfdc``
Junxiao Shi0e13e1e2018-01-22 08:29:12 +000061 List all subcommands.
hilata6ee6e072014-04-20 17:10:18 -050062
Davide Pesavento543b1522024-06-25 17:00:32 -040063``nfdc help face create``
Junxiao Shi0e13e1e2018-01-22 08:29:12 +000064 Show how to use the ``nfdc face create`` subcommand.
Junxiao Shi15902ef2017-08-11 22:58:35 +000065
Davide Pesavento543b1522024-06-25 17:00:32 -040066See Also
Junxiao Shi15902ef2017-08-11 22:58:35 +000067--------
Davide Pesavento543b1522024-06-25 17:00:32 -040068
69:manpage:`nfd(1)`,
70:manpage:`nfdc-cs(1)`,
71:manpage:`nfdc-face(1)`,
72:manpage:`nfdc-route(1)`,
73:manpage:`nfdc-status(1)`,
74:manpage:`nfdc-strategy(1)`