wc - Convenience command

This command prints number of entities, subscriptions, registrations, or types.

Commands

Common Options

Options Description
--host value, -h value specify host or alias
--token value specify oauth token
--service value, -s value specify FIWARE Service
--path value, -p value specify FIWARE ServicePath
--help show help (default: false)

This command prints number of entities.

ngsi wc [common options] entities [options]

Options

Options Description
--type value, -t value specify Entity Type
--link value, -L value specify @context
--skipForwarding skip forwarding to CPrs (v2) (Orion 3.1.0 or later)
--help specify show help (default: false)

Examples

Example 1

ngsi wc --host orion entities
3606

Example 2

ngsi wc --host orion entities --type EvacuationSpace
231

This command prints number of subscriptions.

ngsi wc [common options] subscriptions

Examples

Example 1

ngsi wc --host orion subscriptions
2

This command prints number of registrations.

ngsi wc [common options] registrations

Examples

Example 1

ngsi wc --host orion registrations
1

This command will print number of types.

ngsi wc [common options] types

Examples

Example 1

ngsi wc --host orion types
16