Docs Navigation

Semaphore CLI: Projects

  1. List all your projects
  2. Shows detailed information about a project
  3. Create a project
  4. List secrets on a project
  5. Attach a secret to a project
  6. Removes a secret from the project
  7. List configuration files for a project
  8. List environment variables on project

List all your projects

$ sem projects:list

Examples:

$ sem projects:list
NAME
ID                                    NAME
99c7ed43-ac8a-487e-b488-c38bc757a034  rt/cli
99c7ed43-ac8a-487e-b488-c38bc757a034  rt/api

Shows detailed information about a project

$ sem projects:info PROJECT_NAME

Examples:

$ sem projects:info renderedtext/cli
ID       99c7ed43-ac8a-487e-b488-c38bc757a034
Name     renderedtext/cli
Created  2017-08-01 13:14:40 +0200
Updated  2017-08-02 13:14:40 +0200

Create a project

$ sem projects:create PROJECT_NAME --url URL
Flag Description
--url Git url to the repository.
required

Examples:

$ sem projects:create renderedtext/cli --url git@github.com:renderedtext/cli.git
ID       99c7ed43-ac8a-487e-b488-c38bc757a034
Name     renderedtext/cli
Created  2017-08-01 13:14:40 +0200
Updated  2017-08-02 13:14:40 +0200

$ sem projects:create renderedtext/api --url https://github.com/renderedtext/api
ID       99c7ed43-ac8a-487e-b488-c38bc757a034
Name     renderedtext/api
Created  2017-08-01 13:14:40 +0200
Updated  2017-08-02 13:14:40 +0200

$ sem projects:create renderedtext/api-tests --url https://github.com/renderedtext/api
ID       99c7ed43-ac8a-487e-b488-c38bc757a034
Name     renderedtext/api-tests
Created  2017-08-01 13:14:40 +0200
Updated  2017-08-02 13:14:40 +0200

List secrets on a project

$ sem projects:secrets:list PROJECT_NAME

Examples:

$ sem projects:secrets:list renderedtext/cli
ID                                    NAME                 CONFIG FILES  ENV VARS
99c7ed43-ac8a-487e-b488-c38bc757a034  renderedtext/tokens             1         0
99c7ed43-ac8a-487e-b488-c38bc757a034  renderedtext/secrets            0         1

Attach a secret to a project

$ sem projects:secrets:add PROJECT_NAME SECRET_NAME

Examples:

$ sem projects:secrets:add renderedtext/cli renderedtext/secrets
Secret renderedtext/secrets added to the project.

Removes a secret from the project

$ sem projects:secrets:remove PROJECT_NAME SECRET_NAME

Examples:

$ sem projects:secrets:remove renderedtext/cli renderedtext/secrets
Secret renderedtext/secrets removed from the project.

List configuration files for a project

$ sem projects:files:list PROJECT_NAME

Examples:

$ sem projects:files:list renderedtext/cli
ID                                    PATH              ENCRYPTED?
77c7ed43-ac8a-487e-b488-c38bc757a034  /etc/a            true
11c7ed43-bc8a-a87e-ba88-a38ba757a034  /var/secrets.txt  true

List environment variables on project

$ sem projects:env-vars:list PROJECT_NAME

Examples:

$ sem projects:env-vars:list renderedtext/cli
ID                                    NAME    ENCRYPTED?  CONTENT
9997ed43-ac8a-487e-b488-c38bc757a034  SECRET  false       aaa
1117ed43-tc8a-387e-6488-838bc757a034  TOKEN   true        *encrypted*

Semaphore Docs are open source — Edit on GitHub

Newsletter

Occasional lightweight product and blog updates. Unsubscribe at any time.

2009-2017 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.