-
Linux
-
Docker
-
Podman
flexctl registration renew --username=<your-username> --password=<your-password> \ <path-to-registration-file>
ssh
Replace <your-username>
and <your-password>
with Anypoint Platform user credentials.
Replace <path-to-registration-file>
with the path and filename of the existing registration.yaml
file.
Use sudo
if you encounter file permission issues when running this command.
For Flex Gateway running in a container, invoke renew
as part of the container run
command.
docker run --entrypoint flexctl \ -v "$(pwd)":/renew \ -v <path-to-registration-directory>:/registration \ -u $UID mulesoft/flex-gateway \ registration renew \ --username=<your-username> \ --password=<your-password> \ --output-directory=/renew \ <path-to-registration-file-in-container>
ssh
Replace <your-username>
and <your-password>
with Anypoint Platform user credentials.
Replace <path-to-registration-file-in-container>
with the path and filename of the existing registration.yaml
file. You must specify the file in the container file system, which in this case is /registration/registration.yaml
.
As an example, if /home/user/flex/registration.yaml
contains your current registration file, navigate to /home/user/flex/
and run the following command with your Anypoint Platform credentials:
docker run --entrypoint flexctl \ -u $UID -v "$(pwd)":/registration \ mulesoft/flex-gateway \ registration renew \ --username=<your-username> \ --password=<your-password> \ --output-directory=/registration/new \ /registration/registration.yaml
ssh
The command creates a new registration file: /home/user/flex/new/registration.yaml
.
For Flex Gateway running in a container, invoke renew
as part of the container run
command.
podman run --entrypoint flexctl --userns=keep-id \ -v "$(pwd)":/renew:Z \ -v <path-to-registration-directory>:/registration:Z \ -u $UID docker.io/mulesoft/flex-gateway \ registration renew \ --username=<your-username> \ --password=<your-password> \ --output-directory=/renew \ <path-to-registration-file-in-container>
ssh
Replace <your-username>
and <your-password>
with Anypoint Platform user credentials.
Replace <path-to-registration-file-in-container>
with the path and filename of the existing registration.yaml
file. You must specify the file in the container file system, which in this case is /registration/registration.yaml
.