Search code examples
consul

connect is not available as command of consul


Query

~$ consul connect proxy -sidecar-for socat

Output:

usage: consul [--version] [--help] <command> [<args>]

Available commands are:

agent          Runs a Consul agent
configtest     Validate config file
event          Fire a new event
exec           Executes a command on Consul nodes
force-leave    Forces a member of the cluster to enter the "left" state
info           Provides debugging information for operators
join           Tell Consul agent to join cluster
keygen         Generates a new encryption key
keyring        Manages gossip layer encryption keys
leave          Gracefully leaves the Consul cluster and shuts down
lock           Execute a command holding a lock
maint          Controls node or service maintenance mode
members        Lists the members of a Consul cluster
monitor        Stream logs from a Consul agent
reload         Triggers the agent to reload configuration files
rtt            Estimates network round trip time between nodes
version        Prints the Consul version
watch          Watch for changes in Consul

Solution

  • Which version of Consul are you using? You can check this with consul --version.

    The consul kv commands were introduced in version 0.7.1. Consul Connect was added in version 1.2.0.

    Both should be available if you are using a recent version.