Keyshade Alpha is launching April 30th 5:00 PM IST
Join our Launch Party
keyshade docs
GithubDiscordReddit
  • 👋What is keyshade?
  • Getting Started
    • Introduction
    • Adding your first secret and variable
    • Installing the CLI
    • Setting up your profile
    • Add keyshade to your project
    • Running your app
  • CLI
    • Introduction
    • Profile
    • Init
    • Workspace
    • Project
    • Environment
    • Run
    • Scan
  • 🥰CONTRIBUTING TO KEYSHADE
    • Summary
    • Design of our code
      • Organization of code
      • API
      • CLI
      • Web
      • Integrations
    • Prerequisites
    • Environment Variables
    • Setting things up
    • Running things locally
      • Running the API
      • Running the Web
      • Running the Platform
      • Running the CLI
      • API Testing
      • Docker Support
  • Internals
    • Architecture of keyshade
    • How the CLI works
Powered by GitBook
On this page
  • Create an API key
  • Create a profile
  • Test your profile

Was this helpful?

Edit on GitHub
  1. Getting Started

Setting up your profile

Get your CLI tied up with Keyshade API

PreviousInstalling the CLINextAdd keyshade to your project

Last updated 13 days ago

Was this helpful?

In order to use the CLI with your applications, or to use the CLI to manage your configurations, you need to set up a profile. A profile contains details about the API you are using, your API key and some other relevant information.

Create an API key

First, we need to create an API key in order to be able to add it to our profile.

  • Head over to

  • Click on your name at the top right

  • Navigate to User Settings -> API Keys

  • Click on Add API Key

  • Give a name to the key

  • Set the expiration date

  • Select all the authorities (you should select only the ones that you need in production environment)

  • Click on Add API Key

Once the key is generated, you would be able to copy it. The key would be in a format ks_<random alphanumeric string>. Make sure that you copy the entire key, including the ks_ prefix.

Create a profile

Now, let's create our profile.

  • Open a terminal

  • Run the following command:

    keyshade profile create --name my-profile -a <your API key here> -m
  • Once done, run this command to set your profile as the default one:

    keyshade profile use my-profile

Test your profile

Now, you are set to making API calls to the keyshade API. You can run this command to check if your profile is set up correctly:

keyshade workspace list

This command should output a list of all the workspaces that you have access to. If you have just started, there should be only one workspace.

user settings