<@ULVA73B9P> I am trying to create a new profile f...
# ask-marvin
j
@Marvin I am trying to create a new profile for my prefect environment. However, when I try to activate this profile, I get the following error:
Prefect server URL not configured using profile 'X' - please configure the server URL or enable ephemeral mode.
I thought to use
prefect config
to edit, but I can only edit my currently active profile (
ephemeral
). How can I edit my new profile?
m
To edit a new profile in Prefect, you'll need to modify the
profiles.toml
file directly. This file is usually located at
~/.prefect/profiles.toml
. Here's how you can proceed: 1. Locate the
profiles.toml
File
: By default, profiles are stored in
~/.prefect/profiles.toml
. You can configure this location by setting the
PREFECT_PROFILES_PATH
environment variable if needed. 2. Edit the Profile: Open the
profiles.toml
file in a text editor and add or modify the profile settings. Specifically, you'll want to set the
PREFECT_API_URL
to configure the server URL for your new profile. 3. Activate the Profile: Once you've edited the file, you can activate your new profile using the CLI command:
Copy code
bash
   prefect profile use <profile-name>
Ensure that the profile name matches what you've configured in the
profiles.toml
file. You can find more details in the Prefect documentation on settings and profiles. If you need further assistance or if something seems unclear, feel free to ask.