profiles

The cfy profiles command is used to manage the Cloudify profiles.

Each profile contains a set of credentials and environmental settings for access to the Cloudify Manager.

Optional flags

These commands support the common CLI flags.

Commands

list

Usage

cfy profiles list [OPTIONS]

List all profiles.

 

Example

$ cfy profiles list
...

Listing all profiles...

Profiles:
+---------------+--------------+----------+-------------------------------------+----------+-----------+---------------+------------------+----------------+-----------------+
|      name     |  manager_ip  | ssh_user |             ssh_key_path            | ssh_port | rest_port | rest_protocol | manager_username | manager_tenant | bootstrap_state |
+---------------+--------------+----------+-------------------------------------+----------+-----------+---------------+------------------+----------------+-----------------+
| *10.239.2.241 | 10.239.2.241 |  centos  | /Users/user/rackspace/key.pem       |    22    |     80    |      http     |      admin       | default_tenant |     Complete    |
+---------------+--------------+----------+-------------------------------------+----------+-----------+---------------+------------------+----------------+-----------------+

...

show-current

Usage

cfy profiles show-current [OPTIONS]

Displays your current active profile and its properties.

 

Example

$ cfy profiles show-current
...

Active profile:
+---------------+--------------+----------+-------------------------------------+----------+-----------+---------------+------------------+----------------+-----------------+
|      name     |  manager_ip  | ssh_user |             ssh_key_path            | ssh_port | rest_port | rest_protocol | manager_username | manager_tenant | bootstrap_state |
+---------------+--------------+----------+-------------------------------------+----------+-----------+---------------+------------------+----------------+-----------------+
| *10.239.2.241 | 10.239.2.241 |  centos  | /Users/user/rackspace/key.pem       |    22    |     80    |      http     |      admin       | default_tenant |     Complete    |
+---------------+--------------+----------+-------------------------------------+----------+-----------+---------------+------------------+----------------+-----------------+

...

export

Usage

cfy profiles export [OPTIONS]

Export all profiles to a file

Warning

Including the ssh keys of your profiles in the archive means that once the profiles are imported, the ssh keys will be put back in their original locations!

If -o / --output-path is omitted, the archive’s name will be cfy- profiles.tar.gz.

Optional flags

 

Example

$ cfy profiles export
...

Exporting profiles to /Users/assi/Work/repos/cfy-profiles.tar.gz...
Export complete!
You can import the profiles by running `cfy profiles import PROFILES_ARCHIVE`

...

import

Usage

cfy profiles import [OPTIONS] ARCHIVE_PATH

Import profiles from a profiles archive.

Warning

If a profile exists both in the archive and locally it will be overwritten (any other profiles will be left intact).

ARCHIVE_PATH is the path to the profiles archive to import.

Optional flags

 

Example

$ cfy profiles import cfy-profiles.tar.gz
...

Importing profiles from cfy-profiles.tar.gz...
Import complete!
You can list profiles using `cfy profiles list`

...

delete

Usage

cfy profiles delete [OPTIONS] PROFILE_NAME

Delete a profile.

PROFILE_NAME is the IP of the Cloudify Manager the profile manages.

 

Example

$ cfy profiles delete 10.239.2.241
...

Deleting profile 10.239.2.241...
Profile deleted

...

use

Usage

cfy profiles use [OPTIONS] MANAGER_IP

Control a specific Cloudify Manager.

PROFILE_NAME is the IP of the manager the profile manages.

Additional CLI commands are added after a Cloudify Manager is used.
To stop using the Cloudify Manager, you can run cfy init -r.

Optional flags

 

Example

cfy profiles use 10.239.2.241 -t default_tenant -u admin -p admin
...

Initializing local profile ...
Initialization completed successfully
Attempting to connect...
Initializing profile 10.239.2.241...
Initialization completed successfully
Using manager 10.239.2.241 with port 80

...

set

Usage

cfy profiles set [OPTIONS]

Set the profile name, manager username and/or password and/or tenant in the current profile

Optional flags

$ cfy profiles set -u admin
...

Validating credentials...
Credentials validated
Setting username to `admin`
Settings saved successfully

...

unset

Usage

cfy profiles unset [OPTIONS]

Clear the manager username and/or password and/or tenant from the current profile.

Optional flags

 

Example

$ cfy profiles unset -u
...

Validating credentials...
Credentials validated
Clearing manager username
Settings saved successfully

...

set-cluster

Usage

cfy profiles set-cluster [OPTIONS] CLUSTER_NODE_NAME

Set connection options for a cluster node.

Optional flags