Configure DKCloudCommand¶
Use the config command to configure DKCloudCommand.
Get started¶
- For the first configuration, you will be prompted to set up the general credentials for DKCloudCommand and a default user context. Configuration for multiple user contexts is supported, but only a default configuration context is required.
- When prompted, enter the username and password (hidden) provided to you by DataKitchen. See step 2 below for an example.
- The default cloud address and port are also provided.
- By default, DKCloudCommand responses will also include an announcement of the context currently in use. This is most helpful if you have configured multiple contexts on the same local machine.
- The CLI is case-sensitive, even if your instance of shell is not. Use lowercase commands with the DKCloudCommand interface.
- Aside from the kitchen and recipe files located in your
/Kitchensworking directories, all local configuration and temporary files associated with DKCloudCommand are located in the{USER_HOME}/.dkdirectory. See step 3 below for an example of this directory.
Configure PyCharm CE IDE with DKCloudCommand¶
PyCharm Community Edition is one of many options for an IDE to use with DKCloudCommand.
-
Initiate the configuration with the
config-listcommand:If this is the first configuration, the command returns the following prompt:
-
Press Enter or Return, then enter the required information.
Follow the syntax in the example below:
Enter username: <USERNAME> Enter password: <PASSWORD> DK Cloud Address (default https://cloud.datakitchen.io): <ENTER> DK Cloud Port (default 443): <ENTER> DK Cloud Merge Tool Template (default None): /usr/local/bin/charm merge {{left}} {{right}} {{base}} DK Cloud File Diff Tool Template (default None): /usr/local/bin/charm diff {{local}} {{remote}} Check current working path against existing contexts?[yes/No] (default No):No Hide current context legend on each command response?[yes/No] (default No):No Skip checking the recipe locally, before recipe-update like commands?[yes/No] (default No):No -
Review your local file structure.
The contents of the
{USER_HOME}/.dkdirectory will appear as follows:File / Directory Description .contextRecords your current user context, if you have configured multiple contexts. .latest_versionRecords the current version of DKCloudCommand; used to prompt when upgrades are available. default/Contains the configuration files for your default user context. .dk-credentialsContains the web token for the configured user. config.jsonContains the username, password, hostname, and port information for the specified user. diffs/Stores local, temporary files after you have executed diff operations from the command line. merges/Stores local, temporary files after you have executed merge operations from the command line. general-config.jsonStores the config for local diff/merge tool; settings for working path warnings. another_context/Contains the configuration files for a second user context. .dk-credentialsconfig.jsondiffs/merges/Additional user contexts follow a directory and file structure similar to the default. Tip
Hidden files and folders: You may need to turn on the ability to view hidden files and folders on your local machine in order to view the contents of {USER_HOME}/.dk. Consult documentation specific to your operating system for instructions.
-
After you have configured your default user, view your user information with the
user-infocommand. Note that your role is configured by your account administrator.Output: user-info command
-
View the full details of your user's configuration by reissuing the
config-listcommand:Output: config-list command
Current configuration is ... Customer Name: <customer> Context: default Config Location: /{USER_HOME}/.dk/default/config.json General Config Location: /{USER_HOME}/.dk/general-config.json Username: <USERNAME> Password: <PASSWORD> Cloud IP: https://cloud.datakitchen.io Cloud Port: 443 Merge Tool: /usr/local/bin/charm merge {{left}} {{right}} {{base}} Diff Tool: /usr/local/bin/charm diff {{local}} {{remote}} Check Working Path: False Hide Context Legend: False