Skip to content

Latest commit

 

History

History
89 lines (81 loc) · 3.64 KB

USAGE.md

File metadata and controls

89 lines (81 loc) · 3.64 KB

Usage

  • General
Usage: eblih [options] command ...

Global Options :
    -u user | --user=user       -- Run as user
    -f folder | --folder=folder -- Execute in specific folder
    -v | --verbose              -- Verbose
    -c | --nocolor              -- Remove the colors
    -b url | --baseurl=url      -- Base URL for BLIH
    -t token | --token=token    -- Specify token in the cmdline
    -T folder | --tmp=folder    -- Set folder as tmp
    -g file | --groups=file     -- File for groups informations
    -V | --version              -- Version

Commands :
    repository                  -- Repository management
    group                       -- Group management
    sshkey                      -- SSH-KEYS management
    config                      -- Modify blihtek configuration

Environment variables :
    EPITECH_LOGIN               -- Your login
    EPITECH_TOKEN               -- Your UNIX password in SHA512
    EPITECH_FOLDER              -- Your work folder
  • Repository mode
Commands :
    new repo                    -- Create and clone the repository repo
    create repo                 -- Create the repository repo
    clone repo                  -- Clone the repository repo
    clone user repo             -- Clone the repository repo of user
    link repo                   -- Link the current directory with repo
    link user repo              -- Link the current directory with repo
    info repo                   -- Get the repository metadata
    list                        -- List the repositories created
    list text                   -- List the repositories created containing text
    backup repo                 -- Backup the repository repo
    backup user repo            -- Backup the repository repo of user
    backupall                   -- Backup all your repositories
    delete repo                 -- Delete the repository repo
    getacl repo                 -- Get the acls set for the repository
    setacl repo user acl        -- Set (or remove) an acl for user on repo
    setgacl repo group acl      -- Set (or remove) an acl for users in group on repo
                                ACL format:
                                r for read
                                w for write
                                a for admin
  • Group mode
Commands :
    create name                 -- Create the group name
    add name user acl           -- Add user to the group name with acl (Update user if already in group)
    delete name                 -- Remove the group name
    delete name users           -- Remove users (one or more) from the group name
    list                        -- List the groups
    list name                   -- List the users in the group name
    rename name newname         -- Change group name into new group name
                                ACL format:
                                r for read
                                w for write
                                a for admin
  • SSHKey mode
Commands :
    upload file                 -- Upload a new ssh-key
    list                        -- List the ssh-keys
    delete sshkey               -- Delete the sshkey with comment <sshkey>
  • Config mode
Commands :
    crypt                       -- Crypt your password in SHA512 for EPITECH_TOKEN
    disp                        -- Display all the values of blihtek variables
    disp variable               -- Display the value of blihtek variable
                                Variables:
                                login    for EPITECH_LOGIN
                                token  for EPITECH_TOKEN
                                folder for EPITECH_FOLDER