---
sourceDocument: Australia Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/application-development

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Configuring and managing your ServiceNow CLI connection profiles

# Configuring and managing your ServiceNow CLI connection profiles {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

Create a connection profile to connect with your instance, view connection profiles, refresh your connection and available commands, or delete profiles you no longer need.  
The ServiceNow CLI stores profile information in
a config.json file which, by default, is stored in your home directory
at the following path:  
* Linux and Mac: \~/.snc/config.json
* Windows: %USERPROFILE%\\.snc\\config.json
{#configure-profile__ul_evp_nf5_j4b}

The CLI uses this file to determine what information to use to connect to an instance, and what settings to use to generate output. By default, the ServiceNow CLI uses the settings found in the default profile to connect to an instance. To use alternate settings, you can create and reference additional named profiles. For more information, see
[Configuring and managing your ServiceNow CLI connection profiles](https://servicenow-prod.fluidtopics.net/uaN9bVliBwHhZQEKjuoqhg "Create a connection profile to connect with your instance, view connection profiles, refresh your connection and available commands, or delete profiles you no longer need.").

The following example shows a  configuration  file with a default profile and a named profile. Each profile can use different credentials and specify different hosts and output formats.  

    {
       "profiles":{
          "default":{
             "host":"https://myinstance.service-now.com",
             "loginmethod":"basic",
             "username":"admin",
             "output":"json",  
             "hostversion":"Paris",
             "appversion":"1.0"
             },
          "user1":{
             "host":"https://otherinstance.service-now.com",
             "loginmethod":"basic",
             "username":"user1",
             "output":"yaml",
             "hostversion":"Paris",
             "appversion":"1.0"
             }
          }
    }

* **[Create a default profile](https://servicenow-prod.fluidtopics.net/q2~8pWsG~dE9FqTHcYXPAw)**   
  Create a connection profile that the ServiceNow CLI uses by default. You must create a default profile to set up the CLI's initial connection with an instance.
* **[Create a named profile](https://servicenow-prod.fluidtopics.net/JaOqLVODkx3uGqn6h2QPhA)**   
  Create a named connection profile to use with specific commands. This allows you to specify a different instance or connection protocol for a specific command.
* **[View profiles](https://servicenow-prod.fluidtopics.net/PORCe55xuz0w6Zkg9nuDmg)**   
  View all connection profiles set in the configuration file, or view information about a specific profile.
* **[Remove a profile](https://servicenow-prod.fluidtopics.net/kCs5P7CVjG1uDFxZxMSb5Q)**   
  Remove a named connection profile that you no longer need from the configuration file.
* **[Refresh your connection](https://servicenow-prod.fluidtopics.net/EQGVixxOuj2MwrObWNz07A)**   
  Update the available commands from the instance for the given profile. Refresh your connection after modifying any of the commands on the corresponding instance in order to keep the CLI up-to-date.

