rctl is the command-line tool for the Routr API server. It creates, lists, describes, updates, and deletes Connect resources over gRPC. It is built with oclif, so rctl --help [COMMAND] prints the same information shown here.
Install
Install the CLI globally from npm.Global flags
Every resource command accepts these flags.
Without
--insecure, rctl opens a TLS connection. It verifies the server with the file in --cacert, or with the system CA store when you omit it. To reach a server without TLS, such as a local Docker setup, pass --insecure or set ALLOW_INSECURE=true in your environment.
create and update take no field flags. They ask for each value with interactive prompts, then ask Ready? before they send the request. Answer no to abort. To create resources from a script, use the SDK.Command structure
Resource commands follow the patternrctl <resource> <action> [REF]. Each resource supports the same five actions.
REF is the resource reference, such as d31f5fb8-e367-42f7-9884-1a7999f53fe8. Run get to find it. The fields of each resource are in Connect resources.
Access control lists
Commands underrctl acl. For field details, see ACL.
rctl acl create
Creates a new ACL.
Prompts:
Example:
rctl acl get
Lists ACLs in pages, or shows a single ACL when you pass REF.
Example:
rctl acl describe
Shows every field of an ACL.
Example:
rctl acl update
Updates an existing ACL.
Prompts: The same prompts as
create, pre-filled with the current values.
Example:
rctl acl delete
Deletes an ACL.
Example:
Agents
Commands underrctl agents. For field details, see Agents.
rctl agents create
Creates a new Agent.
Prompts:
Example:
rctl agents get
Lists Agents in pages, or shows a single Agent when you pass REF.
Example:
rctl agents describe
Shows every field of a Agent.
Example:
rctl agents update
Updates an existing Agent.
Prompts: The same prompts as
create, except Username, which you can’t change.
Example:
rctl agents delete
Deletes a Agent.
Example:
Credentials
Commands underrctl credentials. For field details, see Credentials.
rctl credentials create
Creates a new set of Credentials.
Prompts:
Example:
rctl credentials get
Lists Credentials in pages, or shows a single set of Credentials when you pass REF.
Example:
rctl credentials describe
Shows every field of a set of Credentials.
Example:
rctl credentials update
Updates an existing set of Credentials.
Prompts: The same prompts as
create, pre-filled with the current values.
Example:
rctl credentials delete
Deletes a set of Credentials.
Example:
Domains
Commands underrctl domains. For field details, see Domains.
rctl domains create
Creates a new Domain.
Prompts:
Example:
rctl domains get
Lists Domains in pages, or shows a single Domain when you pass REF.
Example:
rctl domains describe
Shows every field of a Domain.
Example:
rctl domains update
Updates an existing Domain.
Prompts: The same prompts as
create, except SIP URI, which you can’t change.
Example:
rctl domains delete
Deletes a Domain.
Example:
Numbers
Commands underrctl numbers. For field details, see Numbers.
rctl numbers create
Creates a new Number.
Prompts:
Example:
rctl numbers get
Lists Numbers in pages, or shows a single Number when you pass REF.
Example:
rctl numbers describe
Shows every field of a Number.
Example:
rctl numbers update
Updates an existing Number.
Prompts: The same prompts as
create, except Telephony URL, City, and Select a Country, which you can’t change.
Example:
rctl numbers delete
Deletes a Number.
Example:
Peers
Commands underrctl peers. For field details, see Peers.
rctl peers create
Creates a new Peer.
Prompts:
Example:
rctl peers get
Lists Peers in pages, or shows a single Peer when you pass REF.
Example:
rctl peers describe
Shows every field of a Peer.
Example:
rctl peers update
Updates an existing Peer.
Prompts: The same prompts as
create, except Username, which you can’t change.
Example:
rctl peers delete
Deletes a Peer.
Example:
Trunks
Commands underrctl trunks. For field details, see Trunks.
rctl trunks create
Creates a new Trunk.
Prompts:
Example:
rctl trunks get
Lists Trunks in pages, or shows a single Trunk when you pass REF.
Example:
rctl trunks describe
Shows every field of a Trunk.
Example:
rctl trunks update
Updates an existing Trunk.
Prompts: The same prompts as
create, pre-filled with the current values.
Example:
rctl trunks delete
Deletes a Trunk.
Example:
Shell completion
rctl autocomplete
Prints instructions to install shell completion for rctl.
Example:
Plugins
rctl includes the oclif plugin commands, so you can add your own commands to it. See Extend rctl.
rctl plugins
Lists installed plugins.
Example:
rctl plugins:install
Installs a plugin from npm or a Git URL. A user-installed plugin overrides a core plugin that has a command with the same name.
Aliases:
rctl plugins add.
Example:
rctl plugins:inspect
Shows installation properties of a plugin.
Example:
rctl plugins:link
Links a local plugin into the CLI for development. A linked plugin overrides user-installed and core plugins.
Example:
rctl plugins:uninstall
Removes a plugin from the CLI.
Aliases:
rctl plugins unlink, rctl plugins remove.
Example:
rctl plugins update
Updates installed plugins.
Example:
Related
Manage resources with rctl
Create a Domain, Agents, and a Trunk step by step.
Connect resources
Every field, type, and constraint for each resource.