Cloud9 IDE - Getting Workspace URL and user email in terminal

366 views Asked by At

I'm writing a bash script, and I need to get from within the terminal current workspace URL and the cloud9 user email.

I've tried:

  • Extracting the data from hostname variable, but it's not the workspace domain.
  • Extracting it from the .c9 project folders, but the domain and user email doesn't seem to appear there

Any ideas how could I get these details from within the c9 terminal?

1

There are 1 answers

0
a user On BEST ANSWER

on hosted workspaces you can use $C9_* environment variables, try

echo $C9_EMAIL $C9_FULLNAME $C9_HOSTNAME $C9_PROJECT