---
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


---

# Create a named profile

# Create a named profile {#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 named connection profile to use with specific commands. This allows you to specify a different instance or connection protocol for a specific command.

## Antes de Iniciar

A default profile must first exist to communicate with an instance.

Role required: none.

## Por Que e Quando Desempenhar Esta Tarefa

Nota:  
Sensitive credential information is only stored in the OS keychain, not in the configuration file.

## Procedimento

1. Open your system's command-line tool and execute this command.
2. Specify the name of the named profile in the <var class="keyword varname">profile-name</var> argument.  

       $ snc configure profile set [--profile profile-name]

   The CLI prompts you for more information.
3. Enter the requested values.  
   When prompting for information, the CLI displays current values in brackets \[\]. To keep an existing value, press the Enter key.{#create-named-profile__id_jqm_bbh_k4b__entry__2}

   | Requested information | Description |
   |-|-|
   | Host | The host name of the instance to connect to. Supports both the full URL (https://my-instance.service-now.com) or just the host name (my-instance). |
   | Login method | The login method to use to connect to the instance. Supports <kbd class="ph userinput">Basic</kbd>, <kbd class="ph userinput">OAuth</kbd>, and <kbd class="ph userinput">OAuth + MFA</kbd>. |
   | Username | The user name to use to connect to the instance. |
   | Password | The password to use to connect to the instance. |
   | Client id | The client ID to use to connect to the instance when the login method is OAuth or OAuth + MFA. |
   | Client secret | The client secret to use to connect to the instance when the login method is OAuth or OAuth + MFA. |
   | Authentication code | The authentication code to use to connect to the instance when the login method is OAuth + MFA. |
   | Default output format | Specifies how to format the command results. Options are <kbd class="ph userinput">json</kbd>, <kbd class="ph userinput">yaml</kbd>, <kbd class="ph userinput">text</kbd>, and <kbd class="ph userinput">table</kbd>. |
   [ ]

   {#create-named-profile__id_jqm_bbh_k4b}  

       $ snc configure profile set --profile user1

       Host: 
       https://mytestinstance.service-now.com

       Login Method (Basic ,OAuth ,OAuth + MFA): 
       Basic

       Username: 
       myusername

       Password: 
       mypassword

4. Run any command using the values specified in your named profile by adding the  `--profile  <profile-name>` attribute to your command.  

       $ snc record create --profile user1

   The command creates a record in the instance specified in the `user1` profile with the specified connection options.

